X
xtravar
I'm using Visual Studio 2005, Compact Framework 2.0.
I made a custom TextBox control by inheriting the original
System.Windows.Forms.TextBox. I can place my control on forms using
the designer, however, it does not display like the original TextBox
control does - it does not reflect changes to any visual properties
(Text, color, etc).
Is there a smart person out there who can tell me how to inherit from
an existing, functional control that is NOT a UserControl or Form, and
then be able to use the new control *usefully* in the designer, as if
it were the original control?
In other words, I want to be able to do things like "class TextBoxEx :
TextBox" and have the designer treat TextBoxEx as a TextBox and display
it just like a normal TextBox.
I made a custom TextBox control by inheriting the original
System.Windows.Forms.TextBox. I can place my control on forms using
the designer, however, it does not display like the original TextBox
control does - it does not reflect changes to any visual properties
(Text, color, etc).
Is there a smart person out there who can tell me how to inherit from
an existing, functional control that is NOT a UserControl or Form, and
then be able to use the new control *usefully* in the designer, as if
it were the original control?
In other words, I want to be able to do things like "class TextBoxEx :
TextBox" and have the designer treat TextBoxEx as a TextBox and display
it just like a normal TextBox.