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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Docking Manager - SetSize property

Thread ID:





998 Sep 12,2002 06:24 AM UTC Sep 13,2002 05:18 AM UTC WinForms 2
Tags: Tools
Sebastien Lange
Asked On September 12, 2002 06:24 AM UTC

Hi, I have a UserControl (docTypeManager1) registered as a Docked Window within a form. 1) I want to show this usercontrol and change its size after clicking on a menu (like a search): this.dockingManager1.SetDockVisibility(this.docTypeManager1, true); this.docTypeManager1.Size = new Size(473,250); The usercontrol is displayed but the size does not change! Its value is still the initial one (defined in InitializeComponent). Is it possible to change the size programmatically? Should'nt it be with a dockingManager1.SetSize property? 2) In design mode, when I change the tab displayed, for example switch from design mode (for a form where I put the docked window) to code mode, the docked window is still shown (like if it was still in design mode). This is a bit annoying. Sebastien

Prakash S [Syncfusion]
Replied On September 13, 2002 01:51 AM UTC

Sebastien, There isn't any direct way to programmatically change a docked control's bounds as any size/location changes would involve a recalculation of the complete dock layout. I will go ahead and file a feature request and we will do our best to provide this implementation in a future version of Essential Tools. One way to workaround this limitation would be to temporarily float the control using the DockingManager.FloatControl() method and then redock it using the DockControl() method and the new size. If you have trouble with this implementation, please open up a support incident using the Direct-Trac system and update us with the specifics. As for the docking window remaining visible when the design tab is switched, I do not quite understand the problem description. I just checked with the MDIDemo sample and switching the app's MainForm between the design and code tabs seems to be working normally and I see no docked windows remaining visible in the code view. Please elaborate on this issue. Prakash Syncfusion, Inc.

Sebastien Lange
Replied On September 13, 2002 05:18 AM UTC

Prakash, For the first pbm, the workaround works for me. For the second one, it doesn't occur anymore (after restarting VS.NET). It seems it is only the first time, when you add the docked window. But I cannot find the correct sequence to reproduce it. (see zip attached, docked Frame 'Document Type...') Sometimes, I have the same pbm with the Customize frame of a ChildFrameBarManager. Sebastien


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