'Sub New' cannot handle events
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

'Sub New' cannot handle events

You attempted to combine Sub New with Handles, which is invalid. Use the Handles keyword at the end of a procedure declaration to cause it to handle events raised by an object variable declared using the WithEvents keyword.

Error ID: BC30497

To correct this error

  • Do not use New in this context.

© 2016 Microsoft