Learner_51
Learner_51

Reputation: 1075

How to open multiple independent windows in C#

I have a Form1 as shown in the image bellow. When I click on the Open 1st Window button, it will open the Form2. But I can't go back to Form1 to click on the second Open 2nd Window button till I close Form2.

enter image description here

Upvotes: 0

Views: 4196

Answers (1)

Selman Genç
Selman Genç

Reputation: 101681

Probably you are using ShowDialog method.Use Show method instead when you open your second form.ShowDialog waits until you close your Form and your program doesn't go to the next line.You can take a look at these question for more details:

Upvotes: 3

Related Questions