Slow Painting

  • Thread starter Brian P. Hammer
  • Start date
B

Brian P. Hammer

All - I have a form with a tab control. On several of the tab pages, I have
user controls with 50+ controls - A label, textbox and checkbox * 17. Each
time the tab page is selected, you can see each label, textbox and checkbox
drawn on the form. I have set doublebuffered on each item. How can I set
the user control not to show until all items are drawn on the control?

Thanks,
Brian
 
B

Bob Powell [MVP]

Double buffering is probably slowing things down. Child controls paint in
their own windows and so double buffering a parent will have no effect other
than to make the parent draw more slowly. Double buffering all the controls
will make them all draw more slowly.

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

Brian P. Hammer

Thanks Bob. I turned off double buffering and also built a release and ran
outside of the IDE. That speeds things up considerably.

Thanks,
Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top