Saturday, 14 September 2013

How to Generate a C# Event Handler Stub from Visual Studio 2012 Source view?

How to Generate a C# Event Handler Stub from Visual Studio 2012 Source view?

Many times the signature of a control's event handler isn't obvious.
Currently, in order to generate an event handler stub in the code behind I
have to
Leave Source view and enter Design view (and wait for the UI to be generated)
Click on the control in question (which sometimes isn't obvious)
Open the Properties toolbar
Click on the lightning bolt
Double-click on the event for which I want to generate a stub
Is there an easier way to do this while still in Source view?

No comments:

Post a Comment