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

Re: Resizing Form by Bob

Bob
Wed Feb 01 12:15:20 CST 2006

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.



"Dino Buljubasic" <dino@noplacelikehome.com> wrote in message
news:d96tt1ttmgtteskdcj8j91sdn90294r5rs@4ax.com...
> 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



Re: Resizing Form by Dino

Dino
Wed Feb 01 16:24:04 CST 2006

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_


On Wed, 1 Feb 2006 19:15:20 +0100, "Bob Powell [MVP]"
<bob@_spamkiller_.bobpowell.net> wrote:

>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.