What is the code to link up two different form?
By htechpro
@htechpro (40)
January 21, 2009 11:55am CST
Im new to C#. I used to use Visual Basic now trying to learn C#, but im stuck on linkng two form. Does any one know the code?
1 response
@silver_sharkbait (158)
• Philippines
22 Aug 11
Sample:
You create two form named:
Main and profile
When you wan to open the profile form using the Main form used this code:
Form a=new profile();
a.show();
Main.Close();
if you want to go back to the Main form use the code again But replace profile by Main and Main by profile.
Hope this will help.
