private void button3_Click(object sender, EventArgs e) { Form1 dlg1 = new Form1(); dlg1.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Form1 frm = new Form1(); frm.ShowDialog(); }
//this function simply creates a new object of Form1 type and shows it's dialog private void ThreadProc() { Form1 frm = new Form1(); frm.ShowDialog(); }