---
title: "I have two windows forms and I want to open them one after the other"  
description: "I have two windows forms and I want to open them one after the other"  
author: "Anonymous User"  
published: 2013-09-04  
updated: 2013-09-04  
canonical: https://www.mindstick.com/forum/1439/i-have-two-windows-forms-and-i-want-to-open-them-one-after-the-other  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# I have two windows forms and I want to open them one after the other

My MainForm [opens](https://www.mindstick.com/news/2570/china-s-new-space-station-opens-for-business-in-an-increasingly-competitive-era-of-space-activity) fine but I cant [figure](https://yourviews.mindstick.com/view/87536/what-are-ghosts-jobs-and-how-to-figure-out-them) out how to get the [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) to open. I read somewhere that I can only have one open at a time? In any case I want the second form to open first and then my mainform to open afterwards.

The issue I'm running into is, that InitializeComponent(); can't be accessed by any form other than the one that its attached to (as far as I've been able to find out).

Any [ideas](https://www.mindstick.com/articles/43878/making-the-best-use-of-the-options-trade-ideas) on what I'm supposed to do would be great as I'm still in the [learning](https://www.mindstick.com/articles/126221/instructional-design-for-elearning-why-it-is-so-important) phase and my searching [skills](https://www.mindstick.com/articles/13123/5-essential-skills-every-digital-marketer-should-know) haven't turned up anything of use.

## Replies

### Reply by Sumit Kesarwani

Hi Goti,

When you run you application, as you may already know, main() is the entry point for your application. In your main() you will be able to find the following code which initialize and show which form should be loaded first.

Application.Run(new Form1());

In this case the Form1 is loaded and shown. If you want to show your 2nd form as soon as Form1 is loaded, You can put the following code in your Form1_Load -

```
private void Form1_load(object send, EventArgs e){      Form2 newForm = new Form2;      newForm.show();}
```

Hope that helps


---

Original Source: https://www.mindstick.com/forum/1439/i-have-two-windows-forms-and-i-want-to-open-them-one-after-the-other

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
