Illegal constructor clause on: <sub name>

You specified a constructor clause on a sub that is not a class constructor sub (Sub New). For example:

Class BaseClass
   Sub New (X As long)
   End Sub
End class
Class DerivedClass As BaseClass
   Sub Old (X As Long, Y As Long), BaseClass(X) ' Illegal: Old is not a
                                                ' constructor sub.
   End Sub
End Class

A class constructor sub must be a part of the definition of a class, and must be named New.

If the sub is not intended to be a class constructor, remove the constructor clause (that is, the comma, the name of the class, and the argument list). Otherwise, rename the sub to New.