Inherited Form Compains of CLS non-Compliance

G

Guest

I have now whittled down my parent Form to nothing more than the simplest
Form with no objects on it of any type at all. When I inherit from it, the
subclassed form's Designer.vb file underlines the Partial Class declaration
with the message:

"Capitation form is not CLS-compliand because it is derived from ParentForm,
which is not CLS-compliant"

Why should a garden variety Windows Form - which is what my ParentForm is -
not be CLS-compliant.
TIA
Jav
 
N

Nick Hounsome

Jav said:
I have now whittled down my parent Form to nothing more than the simplest
Form with no objects on it of any type at all. When I inherit from it,
the
subclassed form's Designer.vb file underlines the Partial Class
declaration
with the message:

"Capitation form is not CLS-compliand because it is derived from
ParentForm,
which is not CLS-compliant"

Why should a garden variety Windows Form - which is what my ParentForm
is -
not be CLS-compliant.
TIA
Jav

I think that you will find that VB is regarded as inherently non-compliant
by default.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top