Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


The WithEvents keyword indicates that a declared object variable refers to a class instance that can raise events.

The WithEvents keyword is used in this context:

Dim Statement

See Also

Visual Basic Language Keywords | Events and Delegates | WithEvents and the Handles Clause

© 2015 Microsoft