DockPanel disable close button

2.9k Views Asked by At

I am using DockPanel suite. I need to disable the Close button of the DockPanel. I found that:

dockPanel1.CloseButtonVisible = false;

will remove close button. But in my dockpanel there is no property called CloseButtonVisible. So how do I remove close button?

2

There are 2 best solutions below

0
On

Are you using the DevExpress components ?

If so you should look for:

   myDockPanelName.Options.ShowCloseButton = False;
0
On

This method is not present on DockPanel. It is on the DockContent so this will work:

content1.CloseButtonVisible = false;