'<specifier>' is not valid on a WithEvents declaration

A Dim statement contains a keyword, such as ReadOnly, that is invalid in combination with the WithEvents keyword.

Error ID: BC30234

To correct this error

  • Remove the invalid keyword from the Dim statement.

See Also

Reference

Dim Statement (Visual Basic)

WithEvents