vinu vinu - 1 month ago 9
Vb.net 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)

uc.Show()

Answer
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