'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
- Do not use
New
in this context.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: