Imports WeifenLuo.WinFormsUI.Docking Namespace UI Namespace Window Public Class Base Inherits DockContent #Region "Public Properties" Private _WindowType As UI.Window.Type Public Property WindowType() As UI.Window.Type Get Return Me._WindowType End Get Set(ByVal value As UI.Window.Type) Me._WindowType = value End Set End Property Private _DockPnl As DockContent Public Property DockPnl() As DockContent Get Return Me._DockPnl End Get Set(ByVal value As DockContent) Me._DockPnl = value End Set End Property #End Region #Region "Public Methods" Public Sub SetFormText(ByVal Text As String) Me.Text = Text Me.TabText = Text End Sub #End Region #Region "Private Methods" Private Sub Base_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load frmMain.ShowHidePanelTabs() End Sub Private Sub Base_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed frmMain.ShowHidePanelTabs(Me) End Sub #End Region End Class End Namespace End Namespace