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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to add buttons to the ribbon adv

Thread ID:

Created:

Updated:

Platform:

Replies:

69226 Oct 19,2007 12:18 AM UTC Oct 25,2007 08:28 PM UTC WinForms 1
loading
Tags: Tools
John
Asked On October 19, 2007 12:18 AM UTC


Hi,

I've been trying to add buttons to the ribbon control. I've tried adding to the tab collection, the mainpanel, auxpanel, and systempanel items collections but nothing shows up on the ribbon control. Thanks!

haneefm [Syncfusion]
Replied On October 25, 2007 08:28 PM UTC

Hi Code12345,

ToolStrip button can be added to the Quick item panel using the following steps,

- Create a object of ToolStripButton class
- Add the ToolStripButton class object to the ribbon control header using AddQuickItem() method.

Below are the codes that shows this task.

ToolStripButton saveItem = new ToolStripButton(Resources.save);
this.ribbonControlAdv1.Header.AddQuickItem(saveItem);

ToolStripButton undoItem = new ToolStripButton(Resources.undo);
undoItem.Enabled = false;
this.ribbonControlAdv1.Header.AddQuickItem(undoItem);

ToolStripButton redoItem = new ToolStripButton(Resources.redo);
redoItem.Enabled = false;
this.ribbonControlAdv1.Header.AddQuickItem(redoItem);

Here is a sample for your reference,
http://websamples.syncfusion.com/samples/Tools.Windows/Forum_1/main.htm

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;