Hi!
How do you obtain a reference to a control from its event handler without knowing the name of that control?
On my form I have some textboxes that have the same code in all their LostFocus and GotFocus events. The only difference is the name of that control itself.
I was wondering if I could create a base textbox with these event handlers coded in and make all my textboxes inherit this textbox... That would make my code much shorter.
Thanks in advance.
Mohit
How do you obtain a reference to a control from its event handler without knowing the name of that control?
On my form I have some textboxes that have the same code in all their LostFocus and GotFocus events. The only difference is the name of that control itself.
I was wondering if I could create a base textbox with these event handlers coded in and make all my textboxes inherit this textbox... That would make my code much shorter.
Thanks in advance.
Mohit