pholland Posted September 17, 2003 Posted September 17, 2003 I've got a method that is called from a forms Resize event handler. This method resizes the controls on a form based on the current resolution (using 800x600 as a basis). The resize code works great, but I don't like the way you can see the controls "grow" as the form is loading. Is there any way I can disable the painting of the form until all the controls have been resized? I tried using the Windows.Forms.SetStyle() method but it doesn't seem to make a difference. Quote
*Experts* mutant Posted September 17, 2003 *Experts* Posted September 17, 2003 You could use those: Me.SuspendLayout() 'and Me.ResumeLayout() It will stop the layout from changing until you resume it, and when it is supsended then change the properties. Quote
pholland Posted September 17, 2003 Author Posted September 17, 2003 I've tried calling SuspendLayout() and ResumeLayout() for all controls on a form and the form itself with no luck. According to the documentation, these methods should do what I need but it doesn't seem to work. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.