How to add a shortcut key to a menu item

5 posts, 0 answers
  1. Boris Rogge
    Boris Rogge avatar
    30 posts
    Member since:
    Mar 2006

    Posted 26 Apr 2007 Link to this post

    Hi all,

    what would be the best way to assign a shortcut key to a certain menu item using the MenuStrip control and the RadMenuItem class.

    Thanks,

    boris
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 27 Apr 2007 Link to this post

    Hello Boris Rogge,

    We have a KB article describing how to add shortcuts to RadMenu so you could take a look at:
    http://www.telerik.com/support/KB/article/b454K-tmb-b454T-ckd-b454c-ckd.aspx

    Best wishes,
    Dimitar Kapitanov
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lorenzo
    Lorenzo avatar
    17 posts
    Member since:
    Aug 2007

    Posted 24 Aug 2007 Link to this post

    Hi. I have to build a standard menu, like the IE7 menù. I want add a shortcut on the various menu items. I can add a shortcut only if there is a click event handler associated to the item. If there isn't the event handler, like the top menu item File, the shortcut doesnt work! (when i click Alt+F nothing happen.... i want see the sub menu items, like Open, Save....)
    How I can do this? And what I have to do to see the shortcut keys near menu items description? (Ex: Save     Alt+S)
    Thanks!
    Lorenzo
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 24 Aug 2007 Link to this post

    Hi Lorenzo,

    The current version of RadMenu does not support mnemonics. Instead we support keyboard shortcuts based on command bindings. This way, there is no possibility to assign shortcut to a menu item not bound with some command. This is an issue and we will fix it in one of the future versions.

    Regarding to your second question, use the HintText property of RadMenuItem to specify its shortcut description.

     
    Best wishes,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Lorenzo
    Lorenzo avatar
    17 posts
    Member since:
    Aug 2007

    Posted 27 Aug 2007 Link to this post

    Hi, thank you for fast response!
    I solved my problem adding an event handler for click to the top menu item File and adding inside the method the following statement:

    radMenuItem_File.ShowChildItems();

    Thanks!
    Lorenzo

Back to Top
UI for WinForms is Visual Studio 2017 Ready