I have actually one classic Windows form and one button. I have this code
private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
this.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
}
I would like to know why isn't form hidden just after it is being loaded but works when I click on that button? Can somebody explain it?
See Question&Answers more detail:os