Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Basic
Error Messages
Compiler Messages
 'WithEvents' variables must have an...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Basic Reference: Error Messages 
'WithEvents' variables must have an 'As' clause 

You did not supply an As clause with the keyword WithEvents. Declare the variable as the specific class that can raise the events.

Error ID: BC30412

To correct this error

  • Add the As clause that specifies the class that can raise the events.

See Also

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
Page view tracker