D
Dom
I've created a user control that contains a textbox and a listbox. I
want to capture the tab key when it is pressed in the textbox. To do
this, I override the ProcessDialogKey event in the user control. But
it occurs to me that I am now processing the tab key when it is
pressed in either the textbox or the listbox. \
How do I override the textbox's event?
The only thing I can think of is that I have to create a MyTextBox
class that inherits the TextBox class, override the event there, and
then use this MyTextBox in my user control. But is there a simpler
way.
Dom
want to capture the tab key when it is pressed in the textbox. To do
this, I override the ProcessDialogKey event in the user control. But
it occurs to me that I am now processing the tab key when it is
pressed in either the textbox or the listbox. \
How do I override the textbox's event?
The only thing I can think of is that I have to create a MyTextBox
class that inherits the TextBox class, override the event there, and
then use this MyTextBox in my user control. But is there a simpler
way.
Dom