I have a complicate win form with lots of controls and bulky repaints, controls resizeing and positioning according to user screen, this causes the form to be shown while doing some rendering and repainting.
Is there any way to load UI and prepare it before displaying??I mean showing final UI after the whole repainting events done.
If using splash screen, before loading the main form, how should I do that??
Thanks
Perhaps using SuspendLayout() and ResumeLayout() would work.
From MSDN:
The SuspendLayout and ResumeLayout methods are used in tandem to suppress multiple Layout events while you adjust multiple attributes of the control. For example, you would typically call the SuspendLayout method, then set the Size, Location, Anchor, or Dock properties of the control, and then call the ResumeLayout method to enable the changes to take effect.
@Kevin has the right idea and it's the approach I would use:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With