Click here to Skip to main content
15,919,423 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello EveryBody.
I Have A Two Form In C# Window Application
In Form1 One Button
I Want To Click Button Form2 Show And Form1 Close.
When Click Button Form2 Show But Form1 Not Close
Please Help Me
Thanks In Advance
Posted

1 solution

You are probably using ShowDialog() to show Form2.
In two words, the code past that method is executed only when Form2 closes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900