Display multiple forms when C# application starts

c#, winforms

Solution

Start the other forms from the `Form.Load` event of `Form1`.

private void Form1_Load(object sender, EventArgs e)
{
    Form2 form2 = new Form2();
    form2.Show();
}

Problem

I have 3 forms in my C# application -- Form1, Form2 and Form3. Currently when my application starts it loads up Form1. I want all three forms to open on application startup. I tried doing this in `Program.cs`: ``` static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); Application.Run(new Form2()); } ``` but Form2 only shows up after Form1 is closed. How can I make all 3 forms show up simultaneously as soon as the application starts?

Original source

Related problems