0

How to I open a other form(Fom2) with pressing a button on Form1

c#

17th Dec 2016, 8:52 PM
Mert Yalniz
Mert Yalniz - avatar
2 Answers
0
in a button click event you must create instance of form2 and call method ShowDialog, example private void ShowButton_Click(object sender, EventArgs e) { var form = new Form2(); form.ShowDialog() }
19th Dec 2016, 1:56 PM
John Wick
John Wick - avatar
0
thank you very much!
19th Dec 2016, 2:47 PM
Mert Yalniz
Mert Yalniz - avatar