Link to home
Start Free TrialLog in
Avatar of back2back
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
Avatar of Jarodtweiss
Jarodtweiss

You have to create an handler that will have that signature :

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 !
ASKER CERTIFIED SOLUTION
Avatar of Jarodtweiss
Jarodtweiss

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial