Opening New Form
-
Hi All, This might seem a bit simple but I have been using C# to create my ASP.NET applications and it has been going okay. Now I am trying to create a windows application and have run into a problem. I have a form called MainForm which has a button on it, when I click this button I want my other Form 'Form2' to open up. How do I do this? Thanks,
-
Hi All, This might seem a bit simple but I have been using C# to create my ASP.NET applications and it has been going okay. Now I am trying to create a windows application and have run into a problem. I have a form called MainForm which has a button on it, when I click this button I want my other Form 'Form2' to open up. How do I do this? Thanks,
-
Hi, Using your form2 as an example; Form2 myForm2 = new Form2(); Form2.Show(); Cheers Paul Mason
Perfect. Thanks, ;) ;) ;) ;)
-
Hi All, This might seem a bit simple but I have been using C# to create my ASP.NET applications and it has been going okay. Now I am trying to create a windows application and have run into a problem. I have a form called MainForm which has a button on it, when I click this button I want my other Form 'Form2' to open up. How do I do this? Thanks,
If you want to open it as a Modal Dialog Form2.Showdialog() or Form2.Show() to open it as a form (or no modal dialog) Remember to reference your other form. Hope this helps. Andres Manggini. Buenos Aires - Argentina.