LCKB
[C#] Open Form1 from Form2 via the button - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: [C#] Open Form1 from Form2 via the button (/showthread.php?tid=2206)



- Paramount - 07-16-2013


Hey guyz! I am searching for a solution how to open Form1 from Form2 via the button?

I have already tried lots of ways but my button as freezed - I click on it and nothing happens.

 

Any idea how to do it?

Thanks in advance.




- ReturnKratos - 07-16-2013


Look in VB.NET is like

Dim Forms as new Form2
Forms.Show()

this code in the button event _click




- Wizatek - 07-16-2013



private void button1_click(object sender, EventArgs e)

{

Form2 form2 = new Form2();

form2.Show();

}



- Paramount - 07-16-2013

Thanks guys! Problem solved Wink