alanmusician
Programmer
I'm new to C# and OO in general, and have a newbie question.
I have a class (ValidTextBox) inherited from TextBox that has various modifications to it, and one thing that I would like to do is make the Text control refer to a custom string class rather than string. How can this be accomplished?
What I'm trying to do is add a ToProper to my ValidTextBox.Text. I want to be able to say ValidTextBox.Text.ToProper(); and have the text in the box turn to proper case. I've already written the ToProper method as a member of EntryString (which inherits from string), but I'm not sure how to get my ValidTextBox class to use it instead of string.
Thanks in advance,
--Alan
I have a class (ValidTextBox) inherited from TextBox that has various modifications to it, and one thing that I would like to do is make the Text control refer to a custom string class rather than string. How can this be accomplished?
What I'm trying to do is add a ToProper to my ValidTextBox.Text. I want to be able to say ValidTextBox.Text.ToProper(); and have the text in the box turn to proper case. I've already written the ToProper method as a member of EntryString (which inherits from string), but I'm not sure how to get my ValidTextBox class to use it instead of string.
Thanks in advance,
--Alan