SyntaxRemoveHandler nameOfEventSender, AddressOf nameOfEventHandler
DescriptionThe RemoveHandler statement removes a previous binding of an event handler to an event. Usage at a GlanceThe AddHandler and RemoveHandler statements can be used to add and remove event notification handlers dynamically at runtime. By contrast, the Handles keyword establishes an event notification handler for the lifetime of an object. ExampleChapter 8 includes examples of using event handlers. Version DifferencesVisual Basic 2005 includes a new Custom Event statement that impacts the use of the RemoveHandler statement. See the Custom Event Statement entry in this chapter for additional information. See AlsoAddHandler Statement, Custom Event Statement |