Winforms Controlling Forms
- by jack london
How can i control all my forms from main ()
static void Main()
{
Form1 frm1 = new Form1();
Form1 frm2 = new Form1();
Form1 frm3 = new Form1();
frm1.Show();
while (frm1.Button.Clicked)
{
frm2.Show();
frm3.Show();
}
}
form.ShowDialog () helps much but the execution stack can overflow.
Form.Show and Form.Hide methods runs when an application class has been set.
In Application.Run (Form) way there's always a main form. and i dont want this one. Any other approach you use in this problem