What is the best way to hide the main form on application\'s startup to show it later?
If I just call the Hide
method in the Load
event of this
Modify your Program class - this is where the form is created and shown:
static class Program {
///
/// The main entry point for the application.
///
[STAThread]
static void Main () {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 frm = new Form1();
frm.Visible = false;
Application.Run();
}
}
Hopefully your adding some sort of user interface?