J
Juan Ignacio Gelos
Hi,
I'm trying to 'hide' the main form of an application until all the
layout work is done and all the controls have their final sizes and
locations (once the form is displayed you can see the several toolbars,
panels and docking sections being resized, drawn for the first time, etc,
and makes it looks really unprofessional). What I'm looking for is to only
display the form when everything is ready and the form can be displayed
instantaneously, just like when a window is restored after being minimized.
I've tried the following in Main but yields the same result:
MainForm frm = new MainForm();
frm.CreateControl();
frm.PerformLayout();
Application.Run(frm);
I'm guessing I need to go deeper and set some window styles or play with
double buffering, but maybe there's an easier way. Anyone has any pointers
on this or (much better) any sample code?
Thanks in advance,
Juan
I'm trying to 'hide' the main form of an application until all the
layout work is done and all the controls have their final sizes and
locations (once the form is displayed you can see the several toolbars,
panels and docking sections being resized, drawn for the first time, etc,
and makes it looks really unprofessional). What I'm looking for is to only
display the form when everything is ready and the form can be displayed
instantaneously, just like when a window is restored after being minimized.
I've tried the following in Main but yields the same result:
MainForm frm = new MainForm();
frm.CreateControl();
frm.PerformLayout();
Application.Run(frm);
I'm guessing I need to go deeper and set some window styles or play with
double buffering, but maybe there's an easier way. Anyone has any pointers
on this or (much better) any sample code?
Thanks in advance,
Juan