Inheritance from TextBoxBase
c#, winforms
Solution
From MSDN:
You do not typically inherit from TextBoxBase. To create your own text control class, inherit from TextBox or RichTextBox.
`TextBoxBase` has an `internal` constructor, which is why you can't call it.
Problem
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?