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

DockingManager and SetCloseButtonVisibility

Thread ID:





57892 Mar 13,2007 05:55 PM UTC Aug 10,2007 11:29 PM UTC WinForms 3
Tags: Tools
Elsa C. Wood
Asked On March 13, 2007 05:55 PM UTC


I tried to implement the SetCloseButtonVisibility to prevent a user from closing one of the docked windows. The code is as follows:

private void dockingManager_NewDockStateEndLoad(object sender, EventArgs e)
dockingManager.SetCloseButtonVisibility(this.treeModel, false);

This control (treeModel) still displays an "X" and I can close it. What am I doing wrong?

Thank you.

Poly J [Syncfusion]
Replied On March 14, 2007 12:45 PM UTC

Hi Elsa,

Thanks for your interest in Syncfusion products.

I have tested the issue you have reported and SetCloseButtonVisibility method is working as expected in our end. Please refer to the attached sample and let me know if you are able to reproduce this issue.

Please let me know the Essential Studio version you are using.

Best Regards,

Sameer Tupe
Replied On August 10, 2007 04:33 PM UTC

I tried the sample. First I got resx load error. I dropped sample textbox on the panel1 and then compiled. It started working but I still see close button on both the windows.
.Net 1.1
Sync -

Ajish [Syncfusion]
Replied On August 10, 2007 11:29 PM UTC

Hi Sameer,

You can use the following code,

this.dockingManager1.CloseEnabled = false;

to disable close button on the docking Manager. Kindly take a look and let me know if this helps.



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