---
title: "CheckListBox  in C#"  
description: "CheckListBox  in C#"  
author: "Anonymous User"  
published: 2013-06-15  
updated: 2013-07-24  
canonical: https://www.mindstick.com/forum/1182/checklistbox-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# CheckListBox  in C#

Hi Experts,\

How can I [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in CheckListBox using C#?

Thanks in advance.

\

## Replies

### Reply by Manmohan Jha

```
private void Form1_Load(object sender, EventArgs e){  checkedListBox1.Items.Add("Sunday", false);  checkedListBox1.Items.Add("Monday", false);  checkedListBox1.Items.Add("Tuesday", false);  checkedListBox1.Items.Add("Wednesday", false);  checkedListBox1.Items.Add("Thursday", false);  checkedListBox1.Items.Add("Friday", false);  checkedListBox1.Items.Add("Saturday", false);try{int index = checkedListBox1.Items.IndexOf(DateTime.Now.ToString("MMMM-yy"));checkedListBox1.SetItemChecked(index, true);}catch (Exception) { }}
```

### Reply by Sumit Kesarwani

Hi Ankita,\
You can use the following code:

```
using System;using System.Drawing;using System.Windows.Forms;namespace WindowsFormsApplication1{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }        private void Form1_Load(object sender, EventArgs e)        {            checkedListBox1.Items.Add("Sunday", CheckState.Checked);            checkedListBox1.Items.Add("Monday", CheckState.Unchecked);            checkedListBox1.Items.Add("Tuesday", CheckState.Indeterminate);            checkedListBox1.Items.Add("Wednesday", CheckState.Checked);            checkedListBox1.Items.Add("Thursday", CheckState.Unchecked);            checkedListBox1.Items.Add("Friday", CheckState.Indeterminate);            checkedListBox1.Items.Add("Saturday", CheckState.Indeterminate);        }    }}
```


---

Original Source: https://www.mindstick.com/forum/1182/checklistbox-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
