Overriding Events in VB.NET

Back in the day, you use to be able to override an event in VB by using the drop down list in the code window.  Today, I had a friend who is moving from Visual Studio 2003 to Visual Studio 2008 ask me, “How do I override events in VB.NET now?”  All you get in the drop downs now is the event handlers.

Well, I’ll be honest here.  I had no idea that was even an option.

It turns out that the best way to automatically override events using VB.NET now is to make use of the Intellisense everywhere feature.


If you type in, “prot”, you can select “protected” from the list.  Press the space bar and then type in “overr” and select “overrides” from the list.  One more space and the list of overridable functions appear.  Select one and press tab to get the function all stubbed out for you.

It’s not quite the same, but I think in the end it may actually be faster than using the drop down list boxes at the top of the edit screen.


Other Related Items:

Kelsyus Backpack ChairKelsyus Backpack ChairMake time to relax in the Kelsyus® backpack chair, featuring armrests that easily convert to backpack shoulder straps so transport is never an issue.
The Blues Brothers  (Widescreen 25th Anniversary Edition)The Blues Brothers (Widescreen 25th Anniversary Edition)THE BROTHERS LEAN THAT THIER OLD ORPHANAGE WILL BE CLOSED AND SOLD WITHIN DAYS UNLESS THE PROPETY TAX IS PAID AND QUICKLY. SO THEY DECIDE TO PUT THEIR BLUES BAND BACK TOGETHER AND START THEIR MISSION FROM GOD WHICH SEEMS TO MAKE MORE ENEMIES THANFRIENDS. WILL THEY COME UP WITH THE MONEY IN TIME.
Doubt cannot override a certainty T-shirtDoubt cannot override a certainty T-shirtText on T-shirt: Doubt cannot override a certainty. Our standard t-shirts are made of 100% cotton and preshrunk (ultra cotton heavyweight). We typica... Read More >

Related Post

Comments are closed.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor