Nadine Ford

Nadine Ford

  • NA
  • 3
  • 0

Linking Forms in Visual Studio 2008 C#

Aug 6 2010 11:30 AM

Hey,
I am new to Visual Studio 2008 and c#.  I am trying to combine projects in Visual Studio 2008.  The code that I have used allows me to open the second form but it doesn't run.  Can you help me?
 
The code for form1 is
private void button1_click(object sender, EventArgs e)
{
      form form2 = new Form();
      form2.show();
}
 
the code for form 2 is:
private void Form2_Load(object sender, EventArgs e)
{
      MessageBox.Show("Does it work");
}

Answers (3)