Name
AddHandler Statement
Synopsis
AddHandlerNameOfEventSender
, AddressOfNameOfEventHandler
NameOfEventSender
required; String literalThe name of a class or object instance and its event, such as Button1.Click
NameOfEventHandler
required; String literalThe name of a subroutine that is to serve as the event handler for
NameOfEventSender
Description
Binds an event handler to a built-in or custom event. This makes it possible to bind several event handlers to a single event.
NameOfEventSender takes the form
class.event
orobject.event
You can stop handling events defined by the
AddHandler
statement by calling theRemoveHandler
statement
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.