---
title: "RadioButton Control in C#.Net"  
description: "RadioButton Control in C#.NetTheRadioButton controls are used when we need to make multiple sets of choices available, but we want the user to selec"  
author: "John Smith"  
published: 2011-01-24  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/394/radiobutton-control-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#", ".net", "asp.net", ".net framework"]  
reading_time: 2 minutes  

---

# RadioButton Control in C#.Net

## RadioButton Control in C#.Net

The **[RadioButton](https://www.mindstick.com/blog/233/get-checked-radiobutton-using-javascript) controls** are used when we need to make multiple sets of choices available, but we want the user to select only [one of them](https://answers.mindstick.com/qa/47593/what-are-the-prevalent-water-proofing-systems-write-a-short-notes-on-any-one-of-them). If they click on a second selection after making a first, the first [selection is replaced by](https://www.mindstick.com/articles/1103/print-and-print-preview-separately-using-html-css-and-javascript) the second.\

## How to use RadioButton 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) three RadioButton from the toolbox on the [window Form](https://www.mindstick.com/forum/527/how-to-pass-datagridview-s-cells-value-to-another-window-form).

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/24099250-5a30-4f2d-a9e2-ba07facd8cae.png)

## Code:

Write code in CheckedChanged event of RadioButton.

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/1d85b8f9-7d5e-4d34-b567-cdf443789c3e.png)

[Double click](https://www.mindstick.com/forum/156225/differentiate-between-google-adword-and-double-click) on CheckedChanged event.

```
private void radioButton1_CheckedChanged(object sender,  EventArgs e){    //RadioButton1 value will show in Label1 if RadioButton1 is selected   label1.Text ="Selcted Language is  "+ radioButton1.Text;}private void radioButton2_CheckedChanged(object sender,  EventArgs e){    //RadioButton2 value will show in Label1 if RadioButton2 is selected    label1.Text = "Selcted Language is  " + radioButton2.Text;}   private void radioButton3_CheckedChanged(object sender,  EventArgs e) {     //RadioButton3 value will show in Label1 if RadioButton3 is selected    label1.Text = "Selcted Language is  " + radioButton3.Text;  }
```

**Run the project**

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/d622fb1b-03da-43eb-97f8-3656e9b6c74d.png)

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

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/8d52a297-923c-4edf-bef9-93c8e54937e2.png)

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

Appearance: [Default value](https://www.mindstick.com/forum/23023/default-value-when-using-singleordefault) is Normal. Set the value to Button if you want the RadioButton to be displayed as a Button.

## Example:

```
//set checkbox appearance as buttonprivate void frmRadioButton_Load(object sender,  EventArgs e){       radioButton1.Appearance = Appearance.Button;       radioButton2.Appearance = Appearance.Button;       radioButton3.Appearance = Appearance.Button;}
```

\

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/cb3320fb-71dc-43d8-a0d3-4caf4a20451d.png)

Now RadioButton appearance is as button.

CheckAlign: CheckAlign [property](https://www.mindstick.com/articles/198559/an-ownership-of-property-in-hua-hin) is used to align the check mark in a RadioButton.

BackColor:RadioButton BackColor can be changed through BackColor Properties of RadioButton.

## Example:

```
//Change RadioButton BackColorprivate void frmRadioButton_Load(object sender,  EventArgs e){          radioButton1.BackColor = Color.CadetBlue;       radioButton2.BackColor = Color.CadetBlue;       radioButton3.BackColor = Color.CadetBlue;}
```

![RadioButton Control in C#.Net](https://www.mindstick.com/mindstickarticle/cf410728-b7ca-42a2-abc4-4df44ba93d01/images/53617320-7251-4fdd-a2b7-b56a7a9de972.png)

---

Original Source: https://www.mindstick.com/articles/394/radiobutton-control-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
