473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Visual studio 2005

Hi All
when I am trying to discover visual studio 2005, I got a strange behavior
when I am trying to put about 50 button on the form and run the application
it makes some flicking in the startup
I tried to avoid flicking by using DoubleBuffered, see this
class InheritedButton:Button
{
public InheritedButton()
{
this.DoubleBuffered = true;
}
}
and I had used InheritedButton instead of button also makes the Form itself
support the DoubleBuffered
and still flickers!!!!!!!!!!!!!!?
Jul 13 '06 #1
4 1922
well no matter how much you buffer 50 buttons, its all dependant on your
system's resources. this then brings up the question of why you have 50
buttons on a single form to begin with....maybe you should rethink your UI
--
-iwdu15
Jul 13 '06 #2
Hi,

Well with 50 buttons (and possible some other controls as well) you may have
some issues showing the form, especially if y our computer is not powerful
enough.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Just close your eyes and see"
<Ju*********************@discussions.microsoft.com wrote in message
news:6A**********************************@microsof t.com...
Hi All
when I am trying to discover visual studio 2005, I got a strange behavior
when I am trying to put about 50 button on the form and run the
application
it makes some flicking in the startup
I tried to avoid flicking by using DoubleBuffered, see this
class InheritedButton:Button
{
public InheritedButton()
{
this.DoubleBuffered = true;
}
}
and I had used InheritedButton instead of button also makes the Form
itself
support the DoubleBuffered
and still flickers!!!!!!!!!!!!!!?

Jul 13 '06 #3
Hello Just close your eyes and see,

Double buffering applies to a control's graphics painting. Applying double
buffering to the form will not affect the flicker from creating a butt-load
of button controls; The buttons are not part of the form's paint routine.

Before the buttons become visible call the Win32 function LockWindowUpdate,
then release the lock once the layout is done.

-Boo
Hi All
when I am trying to discover visual studio 2005, I got a strange
behavior
when I am trying to put about 50 button on the form and run the
application
it makes some flicking in the startup
I tried to avoid flicking by using DoubleBuffered, see this
class InheritedButton:Button
{
public InheritedButton()
{
this.DoubleBuffered = true;
}
}
and I had used InheritedButton instead of button also makes the Form
itself
support the DoubleBuffered
and still flickers!!!!!!!!!!!!!!?

Jul 14 '06 #4
Many thx Boo for your response , I think your answer tends to be the solution
but I still have problems see this code
//////////////////////////////////////////////////////////////////
public class myBut : Button
{
[DllImport("user32.dll")]
static extern bool LockWindowUpdate(IntPtr hWndLock);
public myBut()
{
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
}
protected override void OnPaint(PaintEventArgs pevent)
{
LockWindowUpdate(this.Handle);
base.OnPaint(pevent);
LockWindowUpdate(IntPtr.Zero);
}
}
//////////////////////////////////////////////////////////
I had used this code on my form and still got the problem , even I added
this code to the constructor of the form
///////////////////////////////////////////////////////
public Form1()
{
LockWindowUpdate(this.Handle);
InitializeComponent();
LockWindowUpdate(IntPtr.Zero);
}
/////////////////////////////////////////////////////////
?????????????????????
Jul 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
3
by: Rachel Garrett | last post by:
This is driving me mad. I have Visual Studio.NET PRO 2005 installed on my machine at work. I want to write a web service. I find lots of tutorials on how to do this with Visual Studio.NET; some are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.