Border Settings in Windows Forms CheckBox (CheckBoxAdv)

26 Apr 20211 minute to read

You can change the color and styles of CheckBoxAdv control border using Border3DStyle, BorderColor, BorderSingle, BorderStyle and HotBorderColor properties.

CheckBoxAdv Properties Description
Border3DStyle Indicates the style of the 3D border. The options included are as follows.

RaisedOuter,

SunkenOuter,

RaisedInner,

SunkenInner,

Raised,

Etched,

Bump,

Sunken,

Adjust and

Flat

.The default value is set to 'Sunken'.
BorderColor Specifies the color of the 2D border.
BorderSingle Indicates the 2D border style. The options included are as follows.

Dotted,

Dashed,

Solid,

Inset,

Outset and

None.

The BorderStyle property should be set to 'FixedSingle'.
BorderStyle Indicates whether the panel should have a border. The options included are given below.

FixedSingle,

Fixed3D and

None.

HotBorderColor Specifies the color of the FixedSingle border when MouseOver.
this.checkBoxAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.Bump;
this.checkBoxAdv1.BorderColor = System.Drawing.Color.Red;
this.checkBoxAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dotted;
this.checkBoxAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;

// BorderStyle must be set to 'FixedSingle'.
this.checkBoxAdv1.HotBorderColor = System.Drawing.Color.Blue;
Me.checkBoxAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.Bump
Me.checkBoxAdv1.BorderColor = System.Drawing.Color.Red
Me.checkBoxAdv1.BorderSingle = System.Windows.Forms.ButtonBorderStyle.Dotted
Me.checkBoxAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

' BorderStyle must be set to 'FixedSingle'.
Me.checkBoxAdv1.HotBorderColor = System.Drawing.Color.Blue

Windows forms CheckBoxAdv Changing the Border color

Windows forms CheckBoxAdv Changing the border color during mouse hover on control