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 MyTimer.Action, AddressOf MyTimeOut

Compatibility

Project Types

All

Operating Systems

All

See also

AddHandler, AddressOf statements.