For example, you can type this.Loaded += in C# and press TAB a couple of times to automatically generate an event handler. Is there an equivelent in Visual Basic?
Typing Addhandler Me.Loaded and pressing TAB or RETURN does nothing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The VB.NET IDE has a different approach, inspired by the WithEvents keyword. Note the two combo boxes at the top of the editor window. You select the (class Events) in the upper left, the event you want to subscribe in the upper right combo. That auto-generates the event handler, it has the Handles keyword.
No help for explicit AddHandler statements that I know of.