S
sho_nuff
Ok, I've done tons of reading on this today and haven't gotten
anything to really work. Here is what i have:
One main Form.
Two main Panels in that form.
These panels contain various controls that can respond to key events
(TreeViews, TextBoxes, etc).
I want an Form wide Key control that handles Ctrl-F to display a
search box.. if the keys pressed are not Ctrl-F then i want the the
Key event to trickle down to the currently focused control.
I've tried combinations of KeyUp, KeyDown, and setting the KeyPreview
property to TRUE in my form.
Is there no easy way to do this? Can anyone help me get started? I'd
prefer to not override too many methods, and instead use KeyUp,
KeyDown, etc.
Much thanks.
SN
anything to really work. Here is what i have:
One main Form.
Two main Panels in that form.
These panels contain various controls that can respond to key events
(TreeViews, TextBoxes, etc).
I want an Form wide Key control that handles Ctrl-F to display a
search box.. if the keys pressed are not Ctrl-F then i want the the
Key event to trickle down to the currently focused control.
I've tried combinations of KeyUp, KeyDown, and setting the KeyPreview
property to TRUE in my form.
Is there no easy way to do this? Can anyone help me get started? I'd
prefer to not override too many methods, and instead use KeyUp,
KeyDown, etc.
Much thanks.
SN