Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
c#, visual studio 2012.

I want to make a button in the form which open another form. How can i do that. And i want the second form replace the first form.

Thank you.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 16:53pm    
What did you try? It would be quicker to try and do it than asking...
—SA

1 solution

Try:
Form2 f2 = new Form2();
Hide();
F2.ShowDialog();
Show();
 
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