I run my program step by step, but still I can not find where form.visible installed.
Here is the code "Form1.cs":
public Form1() { InitializeComponent(); this.Hide(); }
I added this.Hide(); but it didnβt work at all.
and I even modified "Program.cs":
Application.Run(new Form1());
in
Form1 form1=new Form1(); form1.Visible = false; Application.Run(form1);
But the main form was still showing, even adding form1.Enable=false; won't stop the form. I also tried adding this.Hide(); in Form1_Load() , it worked, but the main form appeared and flashed before it was finally hidden.
Now I'm completely confused. So how can I load the main form without showing it? And keep it hidden until I call this.Show(); ?
source share