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

Show PopupControlContainer upon ToolsStripEX DropDown

Thread ID:

Created:

Updated:

Platform:

Replies:

71315 Jan 25,2008 08:25 PM UTC Feb 10,2008 05:33 PM UTC WinForms 3
loading
Tags: Tools
ERobishaw
Asked On January 25, 2008 08:25 PM UTC

Using a ToolsStripEX I want to show a PopupControlContainer using a Drop Down type menu button.
(For variuos reasons, I don't want to use the XPToolMenu)

In the DropDownOpening, how do I show the PopupContainer at the proper placement?

I can't seem to determine the toolStripDropDownButton's location.






Sri Rajan [Syncfusion]
Replied On January 29, 2008 10:43 PM UTC

Hi ERobishaw,

Thank you for your interest in Syncfusion products.

Please use the below code snippet to show a PopupControlContainer when you open the drop down dropdown button in ToolsStripEX.


private void toolStripDropDownButton1_DropDownOpening(object sender, EventArgs e)
{
Point pt=new Point(this.toolStripDropDownButton1.Bounds.X+this.toolStripDropDownButton1.Bounds.Width,this.toolStripDropDownButton1.Bounds.Y+this.toolStripDropDownButton1.Bounds.Height+40);
this.popupControlContainer1.ShowPopup(pt);
}


Please refer the below sample for more details.
http://websamples.syncfusion.com/samples/Tools.Windows/F71315/main.htm

Please let me know if this helps.

Regards,
Srirajan



ERobishaw
Replied On January 30, 2008 05:36 AM UTC

Thanks, one thing:

Is there an easy way to have to toolstrip button stay orange (looking like its selected) while the popup is showing? I'm looking to emulate the behavior of the XPToolbar control's buttons w/ a popup in them.


Administrator [Syncfusion]
Replied On February 10, 2008 05:33 PM UTC

Hi ERobishaw,

Sorry for the delayed response.

You can have toolstripbutton to stay selected while the popup is showing using following code snippet.

[C#]

private void toolStripDropDownButton1_MouseLeave(object sender, EventArgs e)
{
if (!this.toolStripDropDownButton1.Pressed)
{
this.toolStripDropDownButton1.Select();
}

}

Sample reference

Please refer the sample that illustrates the same.

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

Regards,
Jaya



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

;