Border Settings in Windows Forms Progress Bar

18 Nov 20181 minute to read

This section discusses the border settings of the Progress Bar control.

Property table

Progress Bar properties Description
Border3DStyle Determines the style of the 3D border. It includes the following options.

RaisedOuter,

SunkenOuter,

RaisedInner,

Raised,

Etched,

SunkenInner,

Bump,

Sunken,

Adjust and

Flat.

BorderColor Indicates the color of the border.This will be applied to the control only when the BorderStyle property is set to 'FixedSingle'.
BorderSingle Determines the style of the 2D border. The options included are as follows.Dashed, Dotted, Solid, Inset,Outset andNone.
BorderStyle Determines the style of the border. It includes the following options.FixedSingle,Fixed3D andNone.
this.progressBarAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter;

this.progressBarAdv1.BorderColor = System.Drawing.Color.Black;

this.progressBarAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dashed;

this.progressBarAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Me.progressBarAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter 

Me.progressBarAdv1.BorderColor = System.Drawing.Color.Black 

Me.progressBarAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dashed 

Me.progressBarAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

Border settings in Windows Forms Progress Bar control