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

Prevent control from being added to QuickAccessToolbar

Thread ID:

Created:

Updated:

Platform:

Replies:

76614 Sep 16,2008 05:42 PM UTC Sep 17,2008 07:28 AM UTC WinForms 1
loading
Tags: Tools
Patrick Hampton
Asked On September 16, 2008 05:42 PM UTC

Hello

Is there a way to prevent an control on the ribbon from being added to the QuickAccessToolbar? We currently have a combo box on the Ribbon and if a user addes that control to the QuickAccessToolbar it does not stay in sync with the source combo box.

Thanks
Patrick


Fathima Shalini P [Syncfusion]
Replied On September 17, 2008 07:28 AM UTC

Hi Patrick,

Thank you for your interest in Syncfusion Products .

It is possible to prevent a ToolStripItem to be added to the QuickAccessToolBar using the QuickItems_BeforeAddItem event. Please refer to the following code snippets and the sample that illustrates this:


void QuickItems_BeforeAddItem(object obj, RibbonItemEventArgs args)
{

if (args.Item.Text == this.toolStripEx1.Items[2].Text)
{
args.Cancel = true;
}

}



http://websamples.syncfusion.com/samples/Tools.Windows/PreventAddingQUickItems/main.htm

Please let me know if any concerns.

Regards,
Fathima


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.

Please sign in to access our forum

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

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

;