{ form2 frm = new form2(); //it will initialize the object frm for form 2 in form 1 frm.Show();// this will opening form 2 //if you want to hide form 1 then this.Hide(); }
in form1.cs on buttin click method { form2 frm = new form2(); // object of form 2 frm.Show() // it will pop up your form 2 }
Form1
Form2
Form2 form2 = new Form2(); form2.Show();
form2.show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)