Prevent painting of .NET form while form is loading?
Posted
by dvcolgan
on Stack Overflow
See other posts from Stack Overflow
or by dvcolgan
Published on 2010-06-14T15:10:15Z
Indexed on
2010/06/14
15:42 UTC
Read the original article
Hit count: 253
Is there a way to turn off all visual updates to a .NET form while I am manipulating it? When my program first loads, for example, I set the tab control to the tab that was last open. The user can see the program switching tabs.
I have looked into SuspendLayout and ResumeLayout, but either I don't understand what they are doing, or I am not using them correctly, because they don't seem to have any effect. Someone told me that there used to be a way to turn off paint events in VB 6. Does this still exist in .NET?
© Stack Overflow or respective owner