Michael Weston
Michael Weston

Reputation: 387

How to add VB.Net event drop-down navigation bar to C# in Visual Studio '15?

In VB.Net you can select an object in the text editor, then on the last drop down list on top of the editor, you can select an event from said object and auto-generate the event method. Can this same navigation bar be enabled for C# in Visual Studio 2015?

Upvotes: 0

Views: 260

Answers (1)

FloatingKiwi
FloatingKiwi

Reputation: 4506

I don't believe it can. That toolbar uses the WithEvents pattern to add event handlers and this pattern is not available in c#

C# makes it easy to add the handlers automatically though when you type

 myobj.MyEvent += 

Then just hit tab to automatically add a handler.

Upvotes: 1

Related Questions