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.

DockingManager Forms Dock problem

Thread ID:

Created:

Updated:

Platform:

Replies:

43637 Apr 27,2006 05:11 PM Jun 9,2006 01:40 AM Windows Forms 19
loading
Tags: Tools
Administrator [Syncfusion]
Asked On April 27, 2006 05:11 PM

Hi, Syn v4.102.0.62, VS 2005 I have attached a sample to demonstrate MDI Application. When I try to dock the usercontrols dock works fine, but windows form the form is hangging inside the dockpanel, i donot want the form''s control buttons and other things in title bar. Thanks, Dhans

MDIAppTest.zip

Joy K George [Syncfusion]
Replied On April 28, 2006 12:42 AM

Hi Dhans, You could achieve your requirement by setting the form''s border style. doc.FormBorderStyle = FormBorderStyle.None; I have modified your sample and attahced here.Please take a look into that and let me know, if you need further assistance. Also please refer this knowledge base article for more details. We appreciate your interest in Syncfusion. Regards, Joy

MDIAppTest_modified.zip

Administrator [Syncfusion]
Replied On April 28, 2006 11:16 AM

Hi Joy, This is works, Thanks for your response. Regards, Dhans

Administrator [Syncfusion]
Replied On May 22, 2006 08:37 AM

Versions -> Sync v4.1, .NET 2.0, and VS 2005 I am using docking manager and tabbed mdi manager for a MDI application. When i frist try to dock the child form it flickering. I do not want that flicker. How do i fix this flicker. I have attached a sample to demostrate the flickerring. Thanks in advance, Dhans

FormFilker.zip

Vijayanand S [Syncfusion]
Replied On May 22, 2006 12:24 PM

Hi Dhans, You could use the LockHostFormUpdate and UnLockHostFormUpdate method to prevent the flickering while creating a new form as the following. this.dockingManager1.LockHostFormUpdate(); dockingManager1.DockControl(form, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Fill, 0); dockingManager1.SetAsMDIChild(form, true); dockingManager1.SetControlSize(form, size); dockingManager1.UnlockHostFormUpdate(); I hope this helps you. Please let me know if you need further assistance. Thanks, Vijay

Administrator [Syncfusion]
Replied On May 22, 2006 11:28 PM

>Hi Dhans, > >You could use the LockHostFormUpdate and UnLockHostFormUpdate method to prevent the flickering while creating a new form as the following. > > >this.dockingManager1.LockHostFormUpdate(); > dockingManager1.DockControl(form, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Fill, 0); > dockingManager1.SetAsMDIChild(form, true); > dockingManager1.SetControlSize(form, size); > dockingManager1.UnlockHostFormUpdate(); > > >I hope this helps you. Please let me know if you need further assistance. > >Thanks, >Vijay

Administrator [Syncfusion]
Replied On May 23, 2006 12:04 AM

Thanks for your quick response Vijay. I have a user control in Bottom panel of the child form, which is docked to Bottom. When i add this child form to MDI manager. The user control is not visible in other than newly added form. I have attached the sample application.

UserControl_Visiblity.zip

Vijayanand S [Syncfusion]
Replied On May 23, 2006 01:46 AM

Hi Dhans, Thanks for the update. Please try to change the DockControl statement as the following statement: dockingManager1.DockControl(form, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Left, 200); Here I have replaced the DockingStyle as Left instead of Fill, since the Fill style is created for internal purpose only. And also you have to specify the size of the Docking control through DockControl method. Because DockingManager initiates the docked control sizes through DockControl method only. Please let me know if you have any questions. Thanks, Vijay

Administrator [Syncfusion]
Replied On May 23, 2006 02:00 AM

I have changed the Dock Style to Left, Still the User Control at the bottom of the child(Other than newly added) form is NOT visible. But i could see the same user control, if i maximize my main form. I have used syncfusion flowlayout in my usercontrol. Let me know is there any flag to be set to view the usercontrol.

Vijayanand S [Syncfusion]
Replied On May 23, 2006 03:34 AM

Hi Dhans, Sorry for the inconvenience. If you refresh the FlowLayout for the child controls of the user control in DockStateChanged event, it will work fine as you expected. I have modified your sample according your requirement. Please take a look at the sample and let me know if you have any questions. Thanks, Vijay FormFilker.zip

Administrator [Syncfusion]
Replied On May 23, 2006 04:56 AM

Is there any other way, like set some flag instead of call a FlowLayout function in UserControl.

Administrator [Syncfusion]
Replied On May 23, 2006 07:00 AM

I have tried that to call PerformFlowLayout for Usercontrol''s FlowLayout control. After two child form added to main form, if i do resize the mainform the UserControl at the bottom of the child form not shown, some times partly visible. I have attached my sample, Please run the sample and let me know if i made mistake anywhere.

UseControl_Dock.zip

Joy K George [Syncfusion]
Replied On May 23, 2006 11:26 AM

Hi Dhans, I have again modified your application to meet your requirement(subscribed to Resize event of Childform and called PerformLayout).Please go through that and let me know, if this works for you. Thanks for your continued interest in Syncfusion. Regards, Joy

new.zip

Administrator [Syncfusion]
Replied On May 23, 2006 11:19 PM

Thanks Joy, Again it does not work, from the solution you sent run the application (DO NOT maximize). and follow these steps, Click File->Add (In child form one button is missing coz of the size of the form in MDI parent) Now maximize the Main MDI Form (note the user control is not visible)

Joy K George [Syncfusion]
Replied On May 25, 2006 01:50 AM

Hi Dhans, I have modified the sample.Changed the property AutoHeight of Layout to false.Please go through the attached sample and let me know,if I missed anything. Regards, Joy

modified sample.zip

Administrator [Syncfusion]
Replied On May 26, 2006 12:03 AM

Thanks Joy, It solved the usercontrol problem!!! I have another issue in Creating new vertical tab group. In the same sample above, I can add multiple child forms to the main form. If right click on tab ->New Horizontal Tab Group it works fine, but for New Vertical Tab Group the new Tab group is not visible. Let me know if any property need to be set Regards, Dhans

Administrator [Syncfusion]
Replied On May 29, 2006 02:14 AM

Hi Dhans, This is a known issue # 1722 in v4.1.0.62 , this issue has been fixed and included in our Release Candidate of v.4.2 (v.4.2.0.27) which you can download from the following link: http://www.syncfusion.com/Downloads/latestversion.aspx Note: A new key is needed for unlocking this version. Please contact sales(salessupport@syncfusion.com) if you have not received a key. Thanks for choosing Syncfusion products. Best Regards, Seetha

Administrator [Syncfusion]
Replied On June 1, 2006 09:20 AM

Thanks Seetha, Is there any work-around that i can do in this version(4.1) to fix that problem? Thanks, Dhans

Mano J [Syncfusion]
Replied On June 1, 2006 11:41 AM

Hi Dhans, Could you please create a Direct-Trac incident mentioning this forum link in the subject line?. We will try to provide a custom assembly including this fix. Thanks, Mano

Administrator [Syncfusion]
Replied On June 9, 2006 01:40 AM

Hi Dhans, Please open a incident under the Direct Trac account using your account ID and not under the Preview Syncfusion account. Thanks for your interest with Syncfusion products. Best Regards, Seetha

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.

;