---
title: "CheckedListBox Control in C#.net"  
description: "CheckedListBox is a combination of a ListBox and a CheckBox. CheckedListBox can have items added using the String Collection Editor or their items c"  
author: "Pushpendra Singh"  
published: 2011-01-24  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/393/checkedlistbox-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# CheckedListBox Control in C#.net

CheckedListBox is a combination of a ListBox and a [CheckBox](https://www.mindstick.com/articles/291/how-should-use-checkbox-control-in-vb-dot-net). CheckedListBox can have items added using the String [Collection](https://www.mindstick.com/articles/1718/collections-in-java) Editor or their items can add dynamically from a collection at run time, using the Items [property](https://www.mindstick.com/articles/198559/an-ownership-of-property-in-hua-hin).\

## How to use CheckedListBox Control

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) a CheckedListBox from toolbox on the windowForm.

![CheckedListBox Control in C#.net](https://www.mindstick.com/mindstickarticle/cd9ffec7-ba3d-46f9-bd6f-8f2827529c4d/images/99213b12-ab87-4781-9b91-71469cdbe609.png)

CheckOnClick property should be true in CheckedListBox so that when you click on the Text then references checkbox is checked.

**Code:**

```
using System;using System.Text;using System.Windows.Forms; namespace WindowsFormsApplication1{     public partial class Form5 : Form    {         public Form5()         {            InitializeComponent();         }         private void Form5_Load(object sender, EventArgs e)         {            // add item in checkedListBox            checkedListBox1.Items.Add("C#");            checkedListBox1.Items.Add("VB");            checkedListBox1.Items.Add("Java");         }         private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)         {            // Show selected Item in Label            label1.Text = "Selected Language is  " + checkedListBox1.SelectedItem.ToString();         }    }}
```

In above code Item is added dynamically so all Items in CheckedListBox1 will show at run time.

## Run the [application](https://www.mindstick.com/articles/12824/calculator-application-in-android)

![CheckedListBox Control in C#.net](https://www.mindstick.com/mindstickarticle/cd9ffec7-ba3d-46f9-bd6f-8f2827529c4d/images/4813be77-df3d-47c2-921e-183e2dd87d12.png)

When you select the given option then SelectedIndexChanged event will fire and [selected value](https://www.mindstick.com/forum/525/get-selected-value-of-datagridviewcomboboxcolumn) will show in the Label.

![CheckedListBox Control in C#.net](https://www.mindstick.com/mindstickarticle/cd9ffec7-ba3d-46f9-bd6f-8f2827529c4d/images/147f0657-9d7a-4560-80b8-10b73532fed4.png)

**CheckedListBox [Properties](https://yourviews.mindstick.com/view/81845/now-it-s-possible-to-predict-properties-of-any-molecule)**

CheckOnClick: Indicates whether the check box should be toggled when an item is selected.

Multicolumn : Indicates whether the CheckedListBox [supports](https://www.mindstick.com/blog/12043/how-to-create-a-killer-mobile-app-that-supports-your-brand) [multiple columns](https://www.mindstick.com/forum/157767/how-to-apply-group-on-multiple-columns-in-sql).

BackColor: BackColor of CheckedListBox can be changed through BackColor property.

**Example:**

```
private void Form5_Load(object sender, EventArgs e){        // change BackColor of checkedListBox        checkedListBox1.BackColor = Color.CadetBlue;}
```

\

![CheckedListBox Control in C#.net](https://www.mindstick.com/mindstickarticle/cd9ffec7-ba3d-46f9-bd6f-8f2827529c4d/images/074ef8be-3cac-4c1a-a051-3a5e66772513.png)

**SelectedItem :** Gets or sets the currently selected item in the CheckedListBox.

\

You must be read this Article :- **[Print and Print Preview separately using HTML, CSS and JavaScript](https://www.mindstick.com/articles/1103/print-and-print-preview-separately-using-html-css-and-javascript)**

---

Original Source: https://www.mindstick.com/articles/393/checkedlistbox-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
