This is one way to do it, but I am sure there are other ways...
Code:
_
static class Program
{
[STAThread]
static void Main()
{
Form1 form1 = new Form1();
Form2 form2 = new Form2();
form1.Show();
form2.Show();
Application.Run(form1);
}
}
I think that one of the problems is that the Load event comes before the form is activated and shown, therefore, no matter what you put in the Load class, the form will be shown after.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.