Posted 3 September 2020, 10:07 am EST
Hi,
As there’s no property available to assign a shortcut key to a C1Ribbon.RibbonMenu - is there a way to have the items of a RibbonMenu being displayed by a keystroke ?
Thanks in advance,
Stephan
Forums Home / ComponentOne / WinForms Edition
Posted by: SHanau on 3 September 2020, 10:07 am EST
Posted 3 September 2020, 10:07 am EST
Hi,
As there’s no property available to assign a shortcut key to a C1Ribbon.RibbonMenu - is there a way to have the items of a RibbonMenu being displayed by a keystroke ?
Thanks in advance,
Stephan
Posted 4 September 2020, 5:44 am EST
Hello,
You can use the KeyTip property to providing keyboard access to a RibbonMenu.
https://www.grapecity.com/componentone/docs/win/online-ribbon/C1.Win.Ribbon.5~C1.Win.Ribbon.RibbonMenu~KeyTip.html
You need to press the Alt key press first at runtime to see the KeyTips.
If this does not help, you can use the KeyDown event of the Form as given below:
this.KeyDown += Form1_KeyDown;
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Y)
{
ribbonMenu1.DroppedDown = true;
}
}
If you need any other help, please let us know.
Regards,
Prabhat Sharma.