Constructor must be declared as a Sub, not as a Function

You have attempted to declare a Function New. Constructors must be declared as Sub New.

Error ID: BC30493

To correct this error

  • Use Sub instead of Function.

See Also

Reference

Sub Statement (Visual Basic)