StatusBarAdvPanel in Windows Forms Status Bar (StatusBarAdv)
StatusBarAdvPanels can also be added to the StatusBarAdv control using the Panels property. On clicking the Panels property, the StatusBarAdvPanel Collection Editor pops up. Using this window, the user can add any number of panels to the control and customize them according to their requirements.
|Panels||Indicates the StatusBarAdvPanel controls contained in the StatusBarAdv.|
The space between the panels can be set using the property given below.
|Spacing||Gets / sets the spacing between the panels.|
this.statusBarAdv1.Spacing = new System.Drawing.Size(5, 5);
Me.statusBarAdv1.Spacing = New System.Drawing.Size(5, 5)
The rectangle that is used to display the panels can be customized using the property given below.
|CustomLayoutBounds||Indicates a custom rectangle that the layout will use to display the panels.|
It can be set programmatically through the below code snippet.
this.statusBarAdv1.CustomLayoutBounds = new System.Drawing.Rectangle(5, 2, 100, 20);
Me.statusBarAdv1.CustomLayoutBounds = New System.Drawing.Rectangle(5, 2, 100, 20)