Getting Started

The CheckBoxAdv control can be created in the following ways.

Assembly Deployment

Refer to the Control Dependencies section to get the list of assemblies or details of NuGet package that needs to be added as reference to use the control in any application.

Refer to NuGet Packages to learn how to install nuget packages in a Windows Forms application.

Adding CheckBoxAdv control via designer

The following steps explain how to create the CheckBoxAdv control via designer.

1) Create a new Windows Forms Project in Visual Studio.

2) Add the CheckBoxAdv control to an application by dragging it from the toolbox to designer view. The following required assembly reference will be added automatically:

  • Syncfusion.Tools.Windows

Windows Forms CheckBoxAdv drag and drop from toolbox

Adding CheckBoxAdv control via code

The following steps explain how to create the CheckBoxAdv control programmatically:

1) Create a C# or VB application though Visual Studio.

2) Include the following required assembly reference:

  • Syncfusion.Tools.Windows

3) Include the required namespace.

using Syncfusion.Windows.Forms.Tools;
Imports Syncfusion.Windows.Forms.Tools

4) Create an instance of the CheckBoxAdv control, and then add it to the form.

private Syncfusion.Windows.Forms.Tools.CheckBoxAdv checkBoxAdv1;
this.checkBoxAdv1 = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv();
this.Controls.Add(this.checkBoxAdv1);
Private checkBoxAdv1 As Syncfusion.Windows.Forms.Tools.CheckBoxAdv
Me.checkBoxAdv1 = New Syncfusion.Windows.Forms.Tools.CheckBoxAdv()
Me.Controls.Add(Me.checkBoxAdv1)

5) Set the text and style of the control.

this.checkBoxAdv1.Text = "checkBoxAdv1";
this.checkBoxAdv1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.checkBoxAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Me.checkBoxAdv1.Text = "checkBoxAdv1"
Me.checkBoxAdv1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CByte((0)))
Me.checkBoxAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

Windows forms CheckBoxAdv showing control

6) Get or set the current checked status using the Checked property. The default value of this property is false.

this.checkBoxAdv1.Checked = true;
this.checkBoxAdv1.CheckState = System.Windows.Forms.CheckState.Checked;
Me.checkBoxAdv1.Checked = True
Me.checkBoxAdv1.CheckState = System.Windows.Forms.CheckState.Checked

Windows Forms CheckBoxAdv showing checked state of the control