'WithEvents' variables can only be typed as classes, interfaces or type parameters with class constraints
You declared a variable that is typed as a structure in conjunction with WithEvents
, which is not a valid use of the WithEvents
modifier.
Error ID: BC30413
- Use
AddHandler
to handle events defined in a structure.
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: