Expand Minimize

Handles clause requires a WithEvents variable defined in the containing type or one of its base types

You did not supply a WithEvents variable in your Handles clause. The Handles keyword at the end of a procedure declaration causes it to handle events raised by an object variable declared using the WithEvents keyword.

Error ID: BC30506

To correct this error

  • Supply the necessary WithEvents variable.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft