Toolbar shortcuts on UserControls

jswota

Well-known member
Joined
Feb 23, 2009
Messages
49
Programming Experience
Beginner
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.
 
Back
Top