"Alex Sheppard-Godwin" <ne**@limehouse .net> wrote in message
news:ez******** ******@TK2MSFTN GP09.phx.gbl...
In VS when your working on a VB code module for a web form you can see
a list of object in the left hand drop down list above the code window
and possible events in the right hand drop down list.
In C# you only see the class name, so getting a code template for an
event is more difficult.
Is this just a difference between the two languages or is there
something I'm missing?
No, there is definately a difference.
In C#, if you want to stub out an event, type:
something.SomeE vent += [TAB][TAB]
This will create the event handler delegate declaration
and it will create the stub method for you.
After you type the +=, a pop-up Intellisense window
will appear telling you to press tab for the auto
declaration. You probably didn't pay attention to
it since a window similar to it, but without the
TAB key auto-stubbing used to appear in VS.NET 2002.
I had to have someone point it out to me too, so
don't feel bad you missed it :)
Likewise, when you declare your class and say
that you're implementing and interface, it will
pop-up and tell you to hit TAB to stub out all
the interface methods. I'm not sure how that works
for abstract base classes. It may work too, but
I haven't tried it recently.
-c