Adding control event handlers in VS .NET 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When designing a form you place some controls on the form.
In a Visual Studio C++ project I can right click on a control to insert an
event handler.
The dialog for this lists all events for that particular control and also
which events you already have a handler for.
How do I do the same thing in C#?

Thanks, Jan
 
The easiest way to do so when in the form designer is to click on the little
lightning bolt icon from the Properties Tab area. This displays the available
events. From here, you can either double click on a given event name to
create a default handler, type in your own name and hit enter to create it,
or use the provided drop down box to selected an available compatible handler.

In order to get back to the properties display, simply click the icon
immediately to the left of the lightning bolt you used to get to the events.

Brendan
 
Back
Top