---
title: "RadioButton Control in VB.Net"  
description: "RadioButton are used when we need to make multiple sets of choices available, but we want the user to select only one of them. If they click on a seco"  
author: "Pushpendra Singh"  
published: 2010-12-11  
updated: 2019-10-15  
canonical: https://www.mindstick.com/articles/314/radiobutton-control-in-vb-dot-net  
category: "vb.net"  
tags: ["vb.net"]  
reading_time: 2 minutes  

---

# RadioButton Control in VB.Net

[RadioButton](https://www.mindstick.com/blog/233/get-checked-radiobutton-using-javascript) are used when we need to make [multiple](https://www.mindstick.com/blog/12797/iowa-is-expected-to-see-heavy-growth-in-multiple-sectors) 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](https://yourviews.mindstick.com/view/82433/the-second-wave-new-covid-19-vs-old-covid-19) [selection](https://www.mindstick.com/blog/60/populate-records-in-second-listbox-according-to-the-selection-in-first-list-box) after making a first, the first selection is removed and replaced by the second.\

[Drag and drop](https://www.mindstick.com/forum/454/how-to-drag-and-drop-multiple-image-from-one-canvas-to-onther-canvas-in-html5) RadioButton from 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 VB.Net](https://www.mindstick.com/mindstickarticle/df3f2179-045d-4673-a5ed-1598cfe6ce2e/images/aa61eff4-b8a9-4eb6-9260-c3d5c82a0707.png)

## Code:

```
Public Class Form15       Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles RadioButton1.CheckedChanged         'RadioButton1 value will show in Label3 if RadioButton1 is selected         Label3.Text = "Selected Language is  " + RadioButton1.Text     End Sub       Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles RadioButton2.CheckedChanged         'RadioButton2 value will show in Label3 if RadioButton2 is selected         Label3.Text = "Selected Language is  " + RadioButton2.Text     End Sub       Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles RadioButton3.CheckedChanged         'RadioButton3 value will show in Label3 if RadioButton3 is selected         Label3.Text = "Selected Language is  " + RadioButton3.Text     End Sub  End Class
```

![RadioButton Control in VB.Net](https://www.mindstick.com/mindstickarticle/df3f2179-045d-4673-a5ed-1598cfe6ce2e/images/b486b985-487e-4e72-8563-61dcdd5b966e.png)

When you select any given option then CheckedChanged event will fire and selected value will show in the Label.

![RadioButton Control in VB.Net](https://www.mindstick.com/mindstickarticle/df3f2179-045d-4673-a5ed-1598cfe6ce2e/images/5d87b7d4-b381-42fb-9d79-744b2987af8f.png)

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

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

```
Private Sub Form15_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load            ' change BackColor of RadioButton         RadioButton1.BackColor = Color.Salmon         RadioButton2.BackColor = Color.Salmon         RadioButton3.BackColor = Color.SalmonEnd Sub
```

\

![RadioButton Control in VB.Net](https://www.mindstick.com/mindstickarticle/df3f2179-045d-4673-a5ed-1598cfe6ce2e/images/f4adb88f-1324-4d43-b57f-339a1ff4214c.png)

**CheckAlign:** CheckAlign property is used to align the check mark in a RadioButton.

**Appearance:** Default value is Normal. Set the value to Button if you want the RadioButton to be displayed as a Button.

```
'set checkbox appearance as button     Private Sub Form15_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles MyBase.Load         RadioButton1.Appearance = Appearance.Button         RadioButton2.Appearance = Appearance.Button         RadioButton3.Appearance = Appearance.Button    End Sub
```

\

![RadioButton Control in VB.Net](https://www.mindstick.com/mindstickarticle/df3f2179-045d-4673-a5ed-1598cfe6ce2e/images/e28a7b6a-d821-4edb-8fb2-864b519c8aad.png)

Now RadioButton will show as button.

---

Original Source: https://www.mindstick.com/articles/314/radiobutton-control-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
