Hide first panel - Vb.net

hide panel

Snippet Code


  
Rate this page :
  [ 0 votes]

set the Width property of the Panel to 0 to hide it.Make sure MinWidth property of the Panel you are hiding is set to 0 and AutoSize property to None. The following code hides the first Panel in the StatusBar when a form loads.

Private Sub onFormLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load StatusBar1.Panels(0).MinWidth = 0 StatusBar1.Panels(0).AutoSize = StatusBarPanelAutoSize.None StatusBar1.Panels(0).Width = 0 End Sub

Tags


Ask Questions

Ask Question