G
Guest
I have a text box class, in which I want this code to run each time the
textbox gets the focus:
this.Text = this.Text.Trim()
How do I wire this up?
I can wire it up at the form level, but then I have to put the code in each
text box in the Enter Event.
The textbox base class is currently and empty shell that looks like this:
class TextBoxBase: TextBox
{
}
Thanks,
Greg
textbox gets the focus:
this.Text = this.Text.Trim()
How do I wire this up?
I can wire it up at the form level, but then I have to put the code in each
text box in the Enter Event.
The textbox base class is currently and empty shell that looks like this:
class TextBoxBase: TextBox
{
}
Thanks,
Greg