Articles in this section
Category / Section

How to add ToolStripItem to quick access toolbar programmatically in the WinForms RibbonControlAdv?

1 min read

Adding items to QAT

To add the ToolStripItem to QAT programmatically, use the Header property and the AddQuickItem function of the WinForms RibbonControlAdv. To load QAT items, you have to typecast the ToolStripItem as the QuickButtonReflectable type.

C#

//Adds the item in the Quick Access ToolBar.
this.ribbonControlAdv1.Header.AddQuickItem(new Syncfusion.Windows.Forms.Tools.QuickButtonReflectable(this.openToolStripButton));
this.ribbonControlAdv1.Header.AddQuickItem(new Syncfusion.Windows.Forms.Tools.QuickButtonReflectable(this.saveToolStripButton));

VB

'Adds the item in the Quick Access ToolBar.
Me.ribbonControlAdv1.Header.AddQuickItem(New Syncfusion.Windows.Forms.Tools.QuickButtonReflectable(Me.openToolStripButton))
Me.ribbonControlAdv1.Header.AddQuickItem(New Syncfusion.Windows.Forms.Tools.QuickButtonReflectable(Me.saveToolStripButton))

 

RibbonForm without adding the toolstripitems in QAT

Figure 1: RibbonForm without adding the ToolStripItems in Quick Access ToolBar

Add ToolStripItems to the QAT

Figure 2: ToolStripItems are added to the Quick Access ToolBar in RibbonForm

 

Before reflecting quick item in the QAT

Figure 3: Before reflecting Quick items in the Quick Access ToolBar

 

Quick items reflected in the customize QAT

Figure 4: Quick items reflected in the “Customize Quick Access ToolBar”

Samples:

C#: https://www.syncfusion.com/downloads/support/directtrac/141998/ze/RibbonControlAdv-702687587

VB: https://www.syncfusion.com/downloads/support/directtrac/141998/ze/RibbonControlAdv_VB786234609

Reference link: https://help.syncfusion.com/windowsforms/ribbon/quick-access-toolbar

 

Conclusion

I hope you enjoyed learning about how to add ToolStripItem to quick access toolbar programmatically in the WinForms RibbonControlAdv.

You can refer to our WinForms RibbonControlAdv’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms RibbonControlAdv documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms RibbonControlAdv and other WinForms components.If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied