Border Settings in Windows Forms statusbaradvpanel (StatusBarAdvPanel)
29 Apr 20211 minute to read
This section illustrates the border settings available for the StatusBarAdvPanel control.
The border settings for the StatusBarAdvPanel control can be set through the properties listed below.
Property Table
StatusBarAdvPanel Property | Description |
---|---|
Border3DStyle | Indicates the style of the 3D border. The options included are as follows.RaisedOuter,SunkenOuter,RaisedInner,SunkenInner,Raised,Etched,Bump,Sunken,Adjust andFlat. |
BorderColor | Indicates the color of the 2D border. |
BorderSingle | Indicates the 2D border style. The options included are as follows.Dotted,Dashed,Solid,Inset,Outset andNone. |
BorderSides | Indicates the border sides of the control. The options included are given below.Left,Top,Right,Bottom,Middle andAll. |
BorderStyle | Indicates whether the panel should have a border. The options included are given below.FixedSingle,Fixed3D andNone. |
NOTE
The BorderColor and BorderSingle properties will have effect only when the BorderStyle property is set to ‘FixedSingle’.
this.statusBarAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedInner;
this.statusBarAdv1.BorderColor = System.Drawing.Color.DarkRed;
this.statusBarAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dashed;
this.statusBarAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.statusBarAdv1.BorderSides = System.Windows.Forms.Border3DSide.All;
Me.statusBarAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedInner
Me.statusBarAdv1.BorderColor = System.Drawing.Color.DarkRed
Me.statusBarAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dashed
Me.statusBarAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.statusBarAdv1.BorderSides = System.Windows.Forms.Border3DSide.All
User can also set the other options available to the properties and monitor the difference in appearance.