---
title: "How to Know status of Check Box is checked or unchecked"  
description: "How to Know status of Check Box is checked or unchecked"  
author: "Anupam Mishra"  
published: 2016-01-20  
updated: 2016-01-20  
canonical: https://www.mindstick.com/forum/33897/how-to-know-status-of-check-box-is-checked-or-unchecked  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# How to Know status of Check Box is checked or unchecked

I want to use [check](https://yourviews.mindstick.com/story/2248/never-forget-to-check-these-specifications-before-buying-a-mobile-phone) box and it will working on [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) [click event](https://www.mindstick.com/forum/424/how-to-call-form_paint-event-on-button-click-event) , how to know check box is checked or unchecked([status](https://www.mindstick.com/articles/157184/check-lic-policy-status-online-by-policy-number)) .After knowing status , i want to do some task.thank you.

## Replies

### Reply by Anupam Mishra

Here, we are using a **groupBox** container that add **checkbox** controls in a form. Code is same as below:

```
        CheckBox check = new CheckBox();                    check.AutoSize = false;                    check.Text = "This is check box";                    check.AutoSize = true;                    check.Location = new Point(50, 50);                    groupBox1.Controls.Add(check);
```

\
Here, we are code for checking **checkbox** status ,it is checked or unchecked :

```
        if ((check).Checked)                     {                      MessageBox.Show("checkbox is checked", "Test", MessageBoxButtons.OK, MessageBoxIcon.Question);                         // Here you can code as you wish                      }
```

or we also checked a status of check box by using check.CheckStatus property.\


---

Original Source: https://www.mindstick.com/forum/33897/how-to-know-status-of-check-box-is-checked-or-unchecked

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
