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.
Syncfusion Feedback

Docking a form

Thread ID:

Created:

Updated:

Platform:

Replies:

218 May 5,2002 11:07 AM UTC May 8,2002 05:51 PM UTC WinForms 7
loading
Tags: Tools
Shimon Klier
Asked On May 5, 2002 11:07 AM UTC

Can I dock a form? I want to design a sub form that has some components (image, textbox, etc.). This sub form should be docked to the main apps form.

Aidas
Replied On May 5, 2002 12:13 PM UTC

You can create user control and then dock it on your main form. The problem is, that this crashes in 99% of all cases ( At least for me. Actually I managed to compile an application with docked user control only once ). Of course tolls are in Beta version, but it would be interesting to know if this issue is already known and if it is planned to fix it ( or maybe there is already fixed versionb or other solution ). > Can I dock a form? > > I want to design a sub form that has some components (image, textbox, etc.). This sub form should be docked to the main apps form.

Prakash S [Syncfusion]
Replied On May 5, 2002 02:59 PM UTC

Aidas, We have several cusotmers using the DockingManager and, till date, we have not heard about any critical issues whatsoever. I am inclined to think that the crashes that you are experiencing could be due to usage error or are being caused by other conditions that are very specific to your application. Please try to provide us with a sample project that will allow us to reproduce this condition. If the crash can be attributed to our DockingManager, I assure you that we will fix the problem immediately. Prakash

Prakash S [Syncfusion]
Replied On May 5, 2002 03:20 PM UTC

Eldan, The Essential Tools DockingManager is form-centric and will allow only controls that are located on a form to be made into docked controls. It is not possible to make an entire form into a docking window. In fact, this is more of a Windows Forms restriction as I do not think it is possible to parent a Form to any Control other than an MDIClient window. Instead of a sub-form, I would recommend that you use a Panel control to host your sub-components and make the Panel a dockable control. Thanks, Prakash

Prakash S [Syncfusion]
Replied On May 5, 2002 03:57 PM UTC

Aidas, Actually I just discovered that the DockingManager designer was having problems with UserControls. Regular controls work fine, but UserControls appear to bog the designer. A temporary workaround would be enable UserControls for docking exclusively through the programmatic API. Call DockingManager.DockControl() on the UserControl after the InitializeComponent() call. The following code should give you an idea, // Dock the UserControl to the bottom of the form this.dockingManager1.DockControl(this.userControl11, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 150); this.dockingManager1.SetDockLabel(this.userControl11, "User Control"); this.dockingManager1.SetDockIcon(this.userControl11, 1); Thank you for bringing this issue to our attention. We will fix this problem as soon as possible and provide you with an update. Prakash Syncfusion, Inc.

Aidas
Replied On May 5, 2002 06:20 PM UTC

Hello Prakash, First of all thanks for the quick answer. IMHO your tools are great and they are pretty stable for the release candidate. Actually I have found another workaround for my problem. I used Panel control for docking and have put my user control on it. This works fine and I also have a possibility to control scroll bars on the docked window. Thanks and Regards, Aidas > Aidas, > > Actually I just discovered that the DockingManager designer was having problems with UserControls. Regular controls work fine, but UserControls appear to bog the designer. > > A temporary workaround would be enable UserControls for docking exclusively through the programmatic API. Call DockingManager.DockControl() on the UserControl after the InitializeComponent() call. The following code should give you an idea, > > // Dock the UserControl to the bottom of the form > this.dockingManager1.DockControl(this.userControl11, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 150); > this.dockingManager1.SetDockLabel(this.userControl11, "User Control"); > this.dockingManager1.SetDockIcon(this.userControl11, 1); > > > Thank you for bringing this issue to our attention. We will fix this problem as soon as possible and provide you with an update. > > Prakash > Syncfusion, Inc. > >

Prakash S [Syncfusion]
Replied On May 5, 2002 10:57 PM UTC

Aidas, I am glad that you were able to workaround this issue. We are looking into this problem and will fix it as soon as possible. I do have a request. Whenever you encounter any problems, please notify us immediately using our Direct-Trac support system. This will be of enormous help as it will allow us to weed out any issues before the final release. Thanks, Prakash Syncfusion, Inc.

Prakash S [Syncfusion]
Replied On May 8, 2002 05:51 PM UTC

This problem has been fixed. The final release of Essential Tools will contain the fix. However, if you are interested in an immediate update, please notify us using the Direct-Trac support system. Prakash Syncfusion

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

;