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.

Re: Inherit TextBoxBase by hirf-spam-me-here

hirf-spam-me-here
Tue Feb 10 14:33:48 CST 2004

* =?Utf-8?B?TGVuIENoYWR3aWNr?= <L(RemoveThis)chadwick@netcentral.co.uk> scripsit:
> 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'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>