Resizing Form

  • Thread starter Thread starter Dino Buljubasic
  • Start date Start date
D

Dino Buljubasic

Hi,

I am having a number of panels containing other panels and controls on
my form. When I resize my form, the redrawing is quite slow.

How do I properly handle this so that it redraws form faster when I
resize it? I am using VS2005 and C#

Any help wll be appreciated
Dino
 
The speed of redraw depends entirely on the controls that are being drawn. A
busy panel with lots of imageboxes will take longer...

Unfortunately, the double buffering system only works on a per-window basis
so setting double buffering on the form will not improve the performance of
child windows.

You may be stuck with the problem until you change your screen design or
optimize any custom controls you may be using.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Thanks,

I actaully solved the problem.

I used Transparent color for BackColor for my panels, lables, etc.
This slowes refreshing drastically. As soon as I changed BackColor to
something else, the refreshing is not of an issue anymore.

_dino_
 
Back
Top