Posted on 2011-10-13
I need some advice on an application I am writing in VB.Net.
I have created a new Windows Forms application and to this I have added a standard Splash Screen (Project->Add New Item->Splash Screen). Then I have set the startup form set as the default form created when the application was created i.e. Form1.
This all works but it doesn't feel right to me. What I would prefer is that a module deals with the creation of the various forms in the application together with all the global variabes etc.
At the moment Form1 will appear and then depending on buttons I press on it, other forms will be opened and Form1 should be destroyed.
I am from a C++ background so really I am looking for advice on how to write an application where:
(1) A Splash Screen appears on startup.
(2) A form appears afterwards on which various buttons are displayed. Pressing any of these buttons displays a new form (and in most cases the parent form will no longer be necessary and should probably be removed).
To summarise, I need advice on how to achieve a common area where all these forms are dealt with e.g. a module.
Hope you can help.