Locating Events

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

I am transitioning from Vb.Net to C#. When using VS.Net with VB.Net while
working in the code window, you can use a drop down list of all of the
objects/contrl on the form, and then once you select and object, you can
then view all of the events for that object/control. Is there any
equivalent in C#. What is the easy way to find all of the events of a
control and their signature?

Thanks in advance for your assistance!
 
In C# you do this in design mode.

Click on the control you want to add events of (give it focus).

In the properties window there is a lightning icon. Clicking on it will
change the property view to event view where you assign events to
methods. Double clicking will cause a default name to be created for that
event.
 
Back
Top