The WithEvents keyword enables event management on an instance variable. For more information on using the WithEvents keyword, see the Dim Statement entry elsewhere in this chapter.
Dim Statement, Handles Keyword