Inherit TextBoxBase

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I inherit from TextBoxBase? It does not have a public,protected or friend constructor and yet Microsoft appear to be able to use inherit in the TextBox and RichTextBox. The TextBox IL displayed in ILDASM shows a TextBoxBase::.ctor.
 
* =?Utf-8?B?TGVuIENoYWR3aWNr?= said:
How do I inherit from TextBoxBase? It does not have a public,protected
or friend constructor and yet Microsoft appear to be able to use inherit
in the TextBox and RichTextBox. The TextBox IL displayed in ILDASM
shows a TextBoxBase::.ctor.

MSDN says that you should inherit from 'TextBox' or 'RichTextBox'
instead of inheriting from 'TextBoxBase'.
 
Back
Top