The VB.NET IDE has a different approach based on the WithEvents keyword. Notice the two combo boxes at the top of the editor window. You select (the Events class) in the upper left corner, the event that you want to subscribe in the upper right field. This automatically generates an event handler; it has the Handles keyword.
No help for the explicit AddHandler statements that I know of.
source
share