In some case, I want to make my own custom control. And in some cases, I want to have first an abstract class to group global code like :
With that structure, my classes work fine but I have a designer error while looking in myTextBox1 and myTextBox2 designer because my base class is abstract and so cannot be built.
This can be annoying if I want to add other graphic component in a SubClass.
Is there a way of avoiding that error (and letting the base class as abstract?)
Thanks,
Visual Basic:
public mustInherit Class myTextBoxBase
inherits TextBox
...
end class
public Class myTextBox1
inherits myTextBoxBase
...
end class
public Class myTextBox2
inherits myTextBoxBase
...
end class
This can be annoying if I want to add other graphic component in a SubClass.
Is there a way of avoiding that error (and letting the base class as abstract?)
Thanks,