Represents a panel bar, which contains one or more Band objects.
The following example creates a new panel bar with a single band and customizes its most important properties:
' create the panel bar and dock it on the left of the form
Dim panelbar As PanelBar = New PanelBar()
panelbar.Dock = DockStyle.Left
Me.Controls.Add(panelbar)
' customize it
panelbar.Caption = "My Panel Bar"
panelbar.CaptionBackColor = SystemColors.ControlDark
panelbar.BorderStyle = Border.Flat
' create a simple band
Dim band As Band = New Band()
band.Caption = "My Band"
panelbar.Bands.Add(band)
// create the panel bar and dock it on the left of the form
PanelBar panelbar = new PanelBar();
panelbar.Dock = DockStyle.Left;
this.Controls.Add(panelbar);
// customize it
panelbar.Caption = "My Panel Bar";
panelbar.CaptionBackColor = SystemColors.ControlDark;
panelbar.BorderStyle = Border.Flat;
// create a simple band
Band band = new Band();
band.Caption = "My Band";
panelbar.Bands.Add(band);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2