Keyboard Shortcuts

Bars for Windows Forms Forum

Posted 11 years ago by Michael Janulaitis - SpectorSoft
Version: 12.1.0304
Avatar

I have a UserControl which contains a BarManager and a Menu Bar with several commands.  Some of these commands have keyboard shortcuts assigned, e.g. Del, Ctrl-C, etc.  I am unable to get the shortcuts to trigger.  If I however move the same BarManager and Menu Bar to a windows form the shortcuts work.  How can I get the shortcuts to work from within a UserControl?

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Michael,

I believe you need to set the BarManager.HostContainerControl property to something valid that already has an ancestor Form, otherwise keyboard shortcuts won't be examined.  In addition, only one BarManager can be registered with a Form at a time.  So if you have multiple BarManagers, then the others will be excluded from watching keyboard shortcuts.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.