Name
WithEvents Keyword
Synopsis
Dim|Private|Public WithEventsobjVarName
AsobjectType
objVarName
required; StringThe name of any object variable that refers to an object that exposes events
objectType
required; any object type other than the generic ObjectThe ProgID of a referenced object
Description
Informs VB that the object being referenced exposes events for which you intend to provide event handlers.
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.