I’m working on a library (.dll) file, and I want to create a little custom TextBox called FatherTextBox, so I started by deriving from TextBoxBase (an abstract class).
After coding the custom logic, I noticed that I get this error message:
The type 'System.Windows.Forms.TextBoxBase' has no constructors defined
So I guess this is not a option:
public FatherTextBox() : base()
{
}
My questions are:
- What is the way to inherit from an abstract class without a constructor?
- Why doesn’t TextBoxBase have a constructor?
From MSDN:
TextBoxBasehas aninternalconstructor, which is why you can’t call it.