I have a program which uses many hidden GUI components. For example, all the menu items, and the printer dialogs/components (which take up at least 50ms alone). In total, I'm guessing around 300ms (or 40%) of the startup of the whole program is thanks to all the hidden stuff.
What I would love to do is create these after the main immediately visible GUI is drawn (similar advice was mentioned in this thread). However, the Visual Studio editor will obviously revert it back to 'normal' after I add/change elements in the GUI designer, and keep creation of all the GUI widgets back together again in the InitializeComponent()
function.
Is it possible to achieve what I want, perhaps by cordoning off particular GUI widgets which Visual Studio isn't allowed to 'touch', whilst leaving the rest for VS to play with? This way, I'd get full performance without sacrificing the convenience of the GUI designer. Or maybe there's a better way?