Hi Ed,
"ECVerify.com" <go****@gencode.com> wrote in message
news:20**************************@posting.google.c om...
This should be a basic question.
In VB.NET in the two drop downs over the source code for a form you
can get a list of the events and overrides for that form. In VC++ in
the properties window you can get the events and overrides. But for
some reason I can not seem to find the list of events and overrides
for a C# form, if I do this. the Intelisense will show them but as for
being able to select it and have the IDE pop the function or override
in like it does in VB.NET and C++ I have not figured out yet.
The C# IDE has the events tab ("lightning bolt" on the property tool
window), which is better than the drop-downs (IMO) for a few reasons. The
events tab allows you to:
1.) Auto-create an event handler procedure via double-click, or
2.) Type what you want the event handler method to be named, or
3.) Choose from a drop-down list of methods that can handle the
event.
#3 is great for using the same event handling procedure for multiple
controls.
To add an override stub:
1.) Go to Class View.
2.) Choose the base class/ base member you want to override.
3.) Opposite-click and choose Add -> Override from the menu.
If you have VS.NET 2003 there are some other options as well. To wire up
an event handler right from the code window, type "<reference name>.<event
name>+=". A tooltip will pop up telling you to press TAB to insert a new
event handler, TAB again to create the stub. To override a method, just type
"override" followed by SPACE. A list of methods you can override will
appear. Choose a method to create the stub.
Regards,
Dan