Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Basic
 Handles clause requires a WithEvent...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Basic Reference: Error Messages
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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker