Keyword

RemoveHandler


Description

Removes an event handler that was added by AddHandler. You need to match the AddHandler call.

Usage

RemoveHandler eventName, delegateMethod

Part

Description

eventName

The event is handled by a method.

delegateMethod

The method that handles the event.

Notes

Always remove any handlers added with AddHandler when you are finished with them.

Sample code

This example removes the work of the AddHandler example. Please see that example for a description of how it works.

RemoveHandler t.Action, AddressOf MyTimeOut

Compatibility

All project types on all supported operating systems.

See also

AddHandler, AddressOf statements.