Represents a band in a PanelBar object.
The band is actually a panel, which can be collapsed or
expanded. When the band is collapsed only its caption is visible.
The following example demonstrates how to add controls to a
Band object and add that band to a PanelBar object:
' create the band
Dim band As Band = New Band()
' create a label
Dim testLabel As Label = New Label()
testLabel.Dock = DockStyle.Top
testLabel.Text = "This is test label"
' add the label to the band
band.Controls.Add(testLabel)
' assume that we have an existing PanelBar object named nPanelBar1
nPaneBar1.Bands.Add(band)
// create the band
Band band = new Band();
// create a label
Label testLabel = new Label();
testLabel.Dock = DockStyle.Top;
testLabel.Text = "This is test label";
// add the label to the band
band.Controls.Add(testLabel);
// assume that we have an existing PanelBar object named nPanelBar1
nPaneBar1.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