Hi.
I have a UserControl that has toolbars with assigned shortcuts. Some of the shortcuts are Up, Down, Left & Right. These are used for panning in a viewing area.
The problem i am facing is that when i place this control on a form next to a grid control, i want the arrow keys to control the grid when the grid has focus and the usercontrol when the usercontrol has focus. This isn't happening. The usercontrol's shortcuts always trump regardless of which control has focus.
Is there some way for me to make the usercontrol's shortcut only work when the usercontrol has focus?
Thanks.
I have a UserControl that has toolbars with assigned shortcuts. Some of the shortcuts are Up, Down, Left & Right. These are used for panning in a viewing area.
The problem i am facing is that when i place this control on a form next to a grid control, i want the arrow keys to control the grid when the grid has focus and the usercontrol when the usercontrol has focus. This isn't happening. The usercontrol's shortcuts always trump regardless of which control has focus.
Is there some way for me to make the usercontrol's shortcut only work when the usercontrol has focus?
Thanks.