)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to assign SuperAccelerator to the WinForms RibbonControlAdv Items?

Platform: WinForms |
Control: RibbonControlAdv |
Published Date: September 1, 2015 |
Last Revised Date: January 9, 2020

Super Accelerator

In the RibbonControlAdv, the SuperAccelerator can be enabled for all its components. You can use the following functions to assign the SuperAccelerator elements to all of the RibbonControlAdv items. They are,

  1. SetMenuButtonAccelerator.
  2. SetAccelerator.
  3. Accelerator.

SetMenuButtonAcceletor - The SetMenuButtonAccelerator function helps you to specify the SuperAccelerator in the MenuButton of the RibbonControlAdv.

SetAccelerator - The SetAccelerator function helps you to specify the SuperAccelerator in all of the ToolStrip items.

Accelerator - The Accelerator property helps you to specify the SuperAccelerator in the BackStage items. In order to show the super accelerator in the BackStageView, the SuperAccelerator should be attached to the BackStage by using the SuperAccelerator property.

C#

//Sets the SuperAccelerator for the RibbonControlAdv MenuButton.
this.superAccelerator1.SetMenuButtonAccelerator(this.ribbonControlAdv1, "F");
// Sets the SuperAccelerator for the ToolStripTabItems.
this.superAccelerator1.SetAccelerator(this.toolStripTabItem1, "H");
this.superAccelerator1.SetAccelerator(this.toolStripTabItem2, "D");
this.superAccelerator1.SetAccelerator(this.toolStripTabItem3, "V");
this.superAccelerator1.SetAccelerator(this.toolStripTabItem4, "P");
this.superAccelerator1.SetAccelerator(this.toolStripTabItem5, "T");
//Sets the SuperAccelerator for the BackStage Items.
this.backStageTab1.Accelerator = "I";
this.backStageTab2.Accelerator = "O";

VB

'Sets the SuperAccelerator for the RibbonControlAdv MenuButton.
Me.superAccelerator1.SetMenuButtonAccelerator(Me.ribbonControlAdv1, "F")
'Sets the SuperAccelerator for the ToolStripTabItems.
Me.superAccelerator1.SetAccelerator(Me.toolStripTabItem1, "H")
Me.superAccelerator1.SetAccelerator(Me.toolStripTabItem2, "D")
Me.superAccelerator1.SetAccelerator(Me.toolStripTabItem3, "V")
Me.superAccelerator1.SetAccelerator(Me.toolStripTabItem4, "P")
Me.superAccelerator1.SetAccelerator(Me.toolStripTabItem5, "T")
'Sets the SuperAccelerator for the BackStage Items.
Me.backStageTab1.Accelerator = "I"
Me.backStageTab2.Accelerator = "O"

 

SuperAccelerator specified for ToolStripTab items

Figure 1: SuperAccelerator specified for ToolStripTab items

SuperAccelerator specified for ToolStripTab buttons

Figure 2: SuperAccelerator specified for ToolStrip Buttons

SuperAccelerator specified for backstage items

Figure 3: SuperAccelerator specified for BackStage items

Samples:

C#: Ribbon_SuperAccelerator_C#

VB: Ribbon_SuperAccelerator_VB

Reference link: https://help.syncfusion.com/windowsforms/ribbon/keyboard-support

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon