back2back
asked on
Windows Forms
Hi as real newbie to C# im in need of help on a basic question,
Ive created a windows form, and have created a button on that form but on the click event i want to open another form I have called frmMainmenu.
-
DW
Ive created a windows form, and have created a button on that form but on the click event i want to open another form I have called frmMainmenu.
-
DW
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
private void Button1_Click(object sender, System.EventArgs e)
and you have to associate that handler with the click event of the button (click on the button on design, go to the properties tab, display the events, locate the Click event and associate your handler)
Much more simpler, double click on your button : .NET will generate the code and association !