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.

Force the Ribbon Control Menu to Close

Thread ID:

Created:

Updated:

Platform:

Replies:

78548 Dec 17,2008 03:02 PM Dec 20,2008 10:08 AM Windows Forms 4
loading
Tags: Tools
John Slater
Asked On December 17, 2008 03:02 PM

I have a Ribbon Control with a ToolStrip ComboBox in the Main Panel. I have a DropDownClosed Event Handler on the ToolStrip ComboBox. After selecting from the ComboBox the Ribbon Menu is not closing unless I Click on the Form or hit Escape. Is there a way I can force it to close after selecting from the ToolStrip ComboBox?


Fathima Shalini P [Syncfusion]
Replied On December 19, 2008 01:49 AM

Hi,

Thank you for your interest in Syncfusion Products.

I have tested the issue with the simple sample in version 6.4.0.15. I have added a ToolStripComboBox and ToolStripComboBoxEx controls in the ToolStripEx that is placed in RibbonControlAdv. I have implemented the DropDownClosed event for both. I am afarid that I was not able to reproduce the issue. Please refer to the sample given below:

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

Could you please let me know what version are you using and also whether you are trying to perform any action in DropDownClosed event, so that I can test the issue further and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima


John Slater
Replied On December 19, 2008 07:37 AM

Hi,

THe example you provided is not the same layout that I have described. I have attached the revised layout. AFter selecting from the ComboBox in the Office Menu Dropdown Button, I would like the Menu to automatically close.
Thanks

>Hi,

Thank you for your interest in Syncfusion Products.

I have tested the issue with the simple sample in version 6.4.0.15. I have added a ToolStripComboBox and ToolStripComboBoxEx controls in the ToolStripEx that is placed in RibbonControlAdv. I have implemented the DropDownClosed event for both. I am afarid that I was not able to reproduce the issue. Please refer to the sample given below:

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

Could you please let me know what version are you using and also whether you are trying to perform any action in DropDownClosed event, so that I can test the issue further and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima





Tools_WF_RibbonControlAdv_F78548Revised_c0323bf6.zip

Fathima Shalini P [Syncfusion]
Replied On December 20, 2008 02:26 AM

Hi,

Thank you for your detailed update.

In order to close the MenuButton's dropdown when the ToolStripComboBox's dropdown is closed, we need to invoke the MenuButtonDropDown's Close method in the ToolStripComboBox's DropDownClosed event. Please refer to the code snippets given below that illustrates this:


private void toolStripComboBox1_DropDownClosed(object sender, EventArgs e)
{
this.ribbonControlAdv1.MenuButtonDropDown.Close();
}


Please let me know if any concerns.

Regards,
Fathima


John Slater
Replied On December 20, 2008 10:08 AM

Thanks,

It is now working.

>Hi,

Thank you for your detailed update.

In order to close the MenuButton's dropdown when the ToolStripComboBox's dropdown is closed, we need to invoke the MenuButtonDropDown's Close method in the ToolStripComboBox's DropDownClosed event. Please refer to the code snippets given below that illustrates this:


private void toolStripComboBox1_DropDownClosed(object sender, EventArgs e)
{
this.ribbonControlAdv1.MenuButtonDropDown.Close();
}


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.

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.

;