0

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?

Charles
  • 50,943
  • 13
  • 104
  • 142
Vicky
  • 1,657
  • 6
  • 23
  • 33

2 Answers2

1

Are you using the DevExpress components ?

If so you should look for:

   myDockPanelName.Options.ShowCloseButton = False;
Jens
  • 3,249
  • 2
  • 25
  • 42
1

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

content1.CloseButtonVisible = false;
roken
  • 3,946
  • 1
  • 19
  • 32