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.
Unfortunately, activation email could not send to your email. Please try again.

how to add buttons to the ribbon adv

Thread ID:

Created:

Updated:

Platform:

Replies:

69226 Oct 18,2007 08:18 PM Oct 25,2007 04:28 PM Windows Forms 1
loading
Tags: Tools
John
Asked On October 18, 2007 08:18 PM


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 04:28 PM

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.

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.

;