Radio Button Control in VB.NET


RadioButton Control is used to represent list of options to the user from which user can select only one option.
Every RadioButton that are placed on the form are treated as a single group, from which user can select only one option. However if you want to divide Radio Buttons in separate groups then you have to put them in different GroupBox.

Radio Button Control

Properties of Radio Button Control in VB.NET



Property Purpose

AutoCheck

It is used to specify weather RadioButton can automatically change its state or not when it is clicked. It has Boolean value. Default value is true.

CheckAlign

It is used to get or set alignment of the  within RadioButton Control. 

Checked

It is used to get or set current state of the RadioButton Control. It means weather RadioButton Control is currently selected or not. It has Boolean value. True means selected. Default value is false.

     

Text

It is used to get or set text associated with RadioButton Control.

TextAlign

It is used to get or set alignment of the text that is associated with RadioButton Control.

Enable

It is used to specify weather RadioButton Control is enabled or not. It has Boolean value. Default value is true.

Visible

It is used to specify weather RadioButton Control is visible or not at run time. It has Boolean value. Default value is true.

BackColor

It is used to get or set background color of the RadioButton.

ForeColor

It is used to get or set color of the RadioButton’s text.

Font

It is used to get or set font Style, Font Size, Font Face of the RadioButton’s text.

TabStop

It is used to specify weather user can use TAB key to set focus on RadioButton Control or not. It has Boolean value. Default value is true.


Methods of RadioButton Control in VB.NET



Method Purpose

PerformClick

It is used to fire Click event of RadioButton Control.

Show

It is used to show RadioButton Control.

Hide

It is used to Hide RadioButton Control at run time.

Focus

It is used to set cursor or focus on RadioButton Control.


Events of RadioButton Control in VB.NET



Event Purpose

CheckedChanged

It is the default event of RadioButton Control. It fires each time the value of checked property is changed.


Download Projects


Download Programs