vinu vinu - 1 year ago 225 Question

Remove Window State and Close button from RadDock in Telerik Winforms

I have used Telerik RadDock in my windows application which is used to load the user control as docking window in my application. Now I need to remove window state and close button from docking window. Please suggest me a solution. Any help is appreciated.

Dim uc As UserControl1 = New UserControl1()

Me.RadDock1.DockControl(uc, DockPosition.Left)


Answer Source
Dim window As HostWindow
  window = DirectCast(RadDock1.ActiveWindow, HostWindow)
  window.ToolCaptionButtons = ToolStripCaptionButtons.AutoHide

In ToolCaptionButtons option we can specify which button we want to have

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download