[C#] Open Form1 from Form2 via the button
#1

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.

#2

Look in VB.NET is like

Dim Forms as new Form2
Forms.Show()

this code in the button event _click

#3


private void button1_click(object sender, EventArgs e)

{

Form2 form2 = new Form2();

form2.Show();

}
#4
Thanks guys! Problem solved Wink



Forum Jump:


Users browsing this thread: 1 Guest(s)