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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing PopupHost.FormBorderStyle on ComboDropDown

Thread ID:





17110 Aug 1,2004 09:13 PM UTC Aug 4,2004 02:37 PM UTC WinForms 4
Tags: Tools
Sean Greer
Asked On August 1, 2004 09:13 PM UTC

ES I have a ComboDropDown that I use to display a tree view. I''d like to change the PopupHost''s FormBorderStyle to SizableToolWindow in order to allow the user to resize the container if they need more room. I''m trying this code in a handler on the PopupContainer''s BeforePopup: this.m_cbCenterFilter.PopupContainer.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow; this.m_CenterTree.Dock = DockStyle.Fill; Unfortunately, the DockStyle setting doesn''t have any effect. Even though I can resize the container, the control appear to not be docked and it''s size is not affected. Am I missing something here?

Administrator [Syncfusion]
Replied On August 2, 2004 09:34 PM UTC

Hi Sean, Thanks for bringing this to our attention. I have created a test_sample as per your directions and could observe the above mentioned issues here. The PopupControlContainer resizing seems to be causing drawing issues and the TreeViewAdv does not get docked as expected. I have requested the development team for their assistance in this regard, and will update you as soon as I hear from them. We appreciate your patience and cooperation. Regards, Guru Patwal Syncfusion, Inc.

Sean Greer
Replied On August 3, 2004 01:31 PM UTC

Guru, Thanks for doing the leg-work to reproduce this. Should I open a direct-trac incident so that this can be tracked? Sean

Administrator [Syncfusion]
Replied On August 4, 2004 12:03 AM UTC

Hi Sean, Please handle the ComboDropDown.PopupContainer''s BeforePopup event as shown below : private void PopupContainer_BeforePopup(object sender, CancelEventArgs args) { this.treeViewAdv1.Dock = DockStyle.Fill; this.comboDropDown1.PopupContainer.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow; if(!(this.comboDropDown1.PopupContainer.PopupHost.Size.Width >= 198)) this.comboDropDown1.PopupContainer.PopupHost.Size = new System.Drawing.Size(198, 150); // So that the popup container will Fill the entire popup host when resized. this.comboDropDown1.PopupContainer.Dock = DockStyle.Fill; } I have modified my earlier sample accordingly and have attached here. Please refer to it and let me know if this works for you. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Sean Greer
Replied On August 4, 2004 02:37 PM UTC

Guru, you''re the man!


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon