)
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 specify the SuperAccelerator for RibbonPanelMergeContainer in WinForms RibbonControlAdv?

Platform: WinForms |
Control: RibbonControlAdv |
Published Date: November 6, 2015 |
Last Revised Date: January 9, 2020

SuperAccelerator for RibbonPanelMergeContainer

You can specify the SuperAccelerator for RibbonPanelMergeContainer by using the function named “SetAccelerator” in SuperAccelerator.

C#

//Attach the MDI parent to TabbedMDIManager
tabbedGroupedMDIManager1.AttachToMdiContainer(this);
ChildForm child = new ChildForm();
//To specify the MDI Form
child.MdiParent = this;
child.Show();
child.Activate();
 
// To ensure if RibbonPanelMergeContainer is added to RibbonControlAdv
if (this.ribbonControlAdv1.Header.MainItems.Count > 2)
{
    // To Set SuperAccelerator for RibbonPanelMergeContainer in Child Form
    this.superAccelerator1.SetAccelerator(this.ribbonControlAdv1.Header.MainItems[2], "E");
}
 
// To Set SuperAccelerator for ToolStripItems in Child Form
this.superAccelerator1.SetAccelerator(child.toolStripButton1, "F");
this.superAccelerator1.SetAccelerator(child.toolStripButton2, "G");

VB

'Attach the MDI parent to TabbedMDIManager
tabbedGroupedMDIManager1.AttachToMdiContainer(Me)
Dim child As New ChildForm()
'To specify the MDI Form
child.MdiParent = Me
child.Show()
child.Activate()
 
' To ensure if RibbonPanelMergeContainer is added to RibbonControlAdv
If Me.ribbonControlAdv1.Header.MainItems.Count > 2 Then
    ' To Set SuperAccelerator for RibbonPanelMergeContainer in Child Form
    Me.superAccelerator1.SetAccelerator(Me.ribbonControlAdv1.Header.MainItems(2), "E")
End If
 
' To Set SuperAccelerator for ToolStripItems in Child Form
Me.superAccelerator1.SetAccelerator(child.toolStripButton1, "F")
Me.superAccelerator1.SetAccelerator(child.toolStripButton2, "G")

 

Before specifying the SuperAccelerator to RibbonMergeContainer

Figure 1. Before specifying the SuperAccelerator for RibbonMergeContainer.

After specifying the SuperAccelerator to RibbonMergeContainer

Figure 2. After specifying the SuperAccelerator for RibbonMergeContainer.

Samples:

C#: Ribbon_SuperAccelerator_C#

VB: Ribbon_SuperAccelerator_VB

Reference links:

1. https://help.syncfusion.com/windowsforms/ribbon/ribbon-merge-support

2. 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