Subject: Forms
Posted By: aadz5 Post Date: 2/2/2004 4:29:34 PM
Guys,

I want to start a new form when a button is pressed, how would I go about doing this??

Thanks

Adz - The World is not enough
Reply By: pradeep_itguy Reply Date: 2/24/2004 1:20:32 PM
Consider Form1 is the name of the windows form class, then you can create another instance of the form using the following code.

On the button click add the following code

Form1 frm = new Form1();
frm.Show();

I think this will help you,
Regards
Pradeep P

It is not how much we do,
but how much love we put in the doing.

-Mother Theresa

Go to topic 10088

Return to index page 942
Return to index page 941
Return to index page 940
Return to index page 939
Return to index page 938
Return to index page 937
Return to index page 936
Return to index page 935
Return to index page 934
Return to index page 933