Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I cant Open 2nd Form without closing First Form. Please Help me.
Posted
Comments
CHill60 23-Jun-13 10:06am    
Your question lacks sufficient detail. Is this WinForms or what? How are you opening the 2nd form (use the Improve question link to post the code into your question)

1 solution

Yes you can:
C#
Form2 f2 = new Form2();
f2.ShowDialog();
Or
C#
Form2 f2 = new Form2();
f2.Show();
will do it...
 
Share this answer
 
Comments
Thomas Daniels 23-Jun-13 10:22am    
+5!
[no name] 23-Jun-13 10:40am    
Better answer than the accepted solution. I smell sock puppetry.
Thomas Daniels 23-Jun-13 12:31pm    
ThePhantomUpvoter wrote:
I smell sock puppetry

Yes, it is sock puppetry. Yesterday I also thought it was, so I posted a message in the Moderators' Forum. And today I saw that Bilashcse copied two answers from other sites without providing the source, and I reported him in the Spam & Abuse Watch Forum.

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