Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 3.72 KB

File metadata and controls

69 lines (56 loc) · 3.72 KB
layout post
title Border Settings in Windows Forms CheckBox control | Syncfusion®
description Learn about Border Settings support in Syncfusion® Windows Forms CheckBox (CheckBoxAdv) control and more details.
platform windowsforms
control EditorsPackage
documentation ug

Border Settings in Windows Forms CheckBox (CheckBoxAdv)

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,' | markdownify }}{{ 'SunkenOuter,' | markdownify }}{{ 'RaisedInner,' | markdownify }}{{ 'SunkenInner,' | markdownify }}{{ 'Raised,' | markdownify }}{{ 'Etched,' | markdownify }}{{ 'Bump,' | markdownify }}{{ 'Sunken,' | markdownify }}{{ 'Adjust and' | markdownify }}{{ 'Flat' | markdownify }}.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,' | markdownify }}{{ 'Dashed,' | markdownify }}{{ 'Solid,' | markdownify }}{{ 'Inset,' | markdownify }}{{ 'Outset and' | markdownify }}{{ 'None.' | markdownify }}The BorderStyle property should be set to 'FixedSingle'.
BorderStyle Indicates whether the panel should have a border. The options included are given below.{{ 'FixedSingle,' | markdownify }}{{ 'Fixed3D and' | markdownify }}{{ 'None.' | markdownify }}
HotBorderColor Specifies the color of the FixedSingle border when MouseOver.

{% tabs %} {% highlight c# %}

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;

{% endhighlight %}

{% highlight vb %}

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

{% endhighlight %} {% endtabs %}

Windows forms CheckBoxAdv Changing the Border color

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