Remind me again.. How do we get VB to write the method stub for an event?

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
In C#, i type the bold bits. The italic bits appear by themselves:

myObj.MyEvent += (new MyEventHandler( [Press TAB to Insert]){TAB key}myObj_MyEventHandler(param1, param2 ...) [Press TAB to generate a method stub]{TAB key}

And presto, my event is handled


In VB:

AddHandler myObj.MyEvent, Now what?


How do I get VB to create me a new empty Sub stub suitable for handling the event?
 
No presto for this in VB.Net that I have found, only for WithEvents variables (that can be used temporarily to generate some handlers)
 
So I should convince work to switch the in-house language :D

The closest presto i've found is to write a duff method and then copy/paste the "Method signature (duff one) doesnt match the required (valid one) blah" error message, delete the extraneous text and.. kinda presto!

Darn..
 
Back
Top