Thanks, I figured it out. I was getting an error
because .show needed to be .Show. Thanks again.
Susan
[color=blue]
>-----Original Message-----
>Hi
>
>Try this:
>System.Windows .Forms.Form Form2 = new
>System.Windows .Forms.Form();
>Form2 f2 = new Form2();
>f2.show();
>
>Put this bit of code in the button function.
>
>If you've set up your form2 correctly it should work.
>
>HTH
>Ravikanth[MVP]
>
>[color=green]
>>-----Original Message-----
>>I am new to C#, and I am trying to create an[/color][/color]
application[color=blue][color=green]
>>that has 2 forms. I need to know how to open form2 by
>>pressing a button on Form1. I know that the code in
>>VB.Net would be:
>>
>>Dim frm as New Form2()
>>frm.Show()
>>
>>Thanks,
>>Susan
>>.
>>[/color]
>.
>[/color]
because .show needed to be .Show. Thanks again.
Susan
[color=blue]
>-----Original Message-----
>Hi
>
>Try this:
>System.Windows .Forms.Form Form2 = new
>System.Windows .Forms.Form();
>Form2 f2 = new Form2();
>f2.show();
>
>Put this bit of code in the button function.
>
>If you've set up your form2 correctly it should work.
>
>HTH
>Ravikanth[MVP]
>
>[color=green]
>>-----Original Message-----
>>I am new to C#, and I am trying to create an[/color][/color]
application[color=blue][color=green]
>>that has 2 forms. I need to know how to open form2 by
>>pressing a button on Form1. I know that the code in
>>VB.Net would be:
>>
>>Dim frm as New Form2()
>>frm.Show()
>>
>>Thanks,
>>Susan
>>.
>>[/color]
>.
>[/color]