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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockingManager and SetCloseButtonVisibility

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.
http://websamples.syncfusion.com/samples/Tools.Windows/F57892/main.htm

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

Best Regards,
Poly



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 - 4.101.0.50

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.

Regards,
Ajish.


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

;