Class

WebRadioButton


Description

A single radio button that appears as part of a WebRadioGroup control.

Properties

Name

Type

Read-Only

Shared

Caption

String

Enabled

Boolean

Tag

Variant

Value

Boolean

Methods

Name

Parameters

Returns

Shared

Constructor

value As String, enabled As Boolean = True

Property descriptions


WebRadioButton.Caption

Caption As String

The text that appears next to the button.


WebRadioButton.Enabled

Enabled As Boolean

When True the WebRadioButton is drawn enabled and responds to user action. When False, the control appears as disabled and does not respond to user actions.


WebRadioButton.Tag

Tag As Variant

This can be used to store any value or object you wish to associate with the button.

This example shows adding a WebRadioButton to a WebRadioGroup with the Tag property set to the current date:

Var button As New WebRadioButton("Today", True)
button.Tag = DateTime.Now
RadioGroup1.AddRow(button)

WebRadioButton.Value

Value As Boolean

Indicates if the button is selected or not.

Method descriptions


WebRadioButton.Constructor

Constructor(value As String, enabled As Boolean = True)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a new WebRadioButton with the caption set to the value passed. If the enabled parameter is True, the button will be initially enabled.

This example shows adding a WebRadioButton to a WebRadioGroup:

RadioGroup1.AddRow(New WebRadioButton("Today", True))

This example shows adding a WebRadioButton to a WebRadioGroup with the Tag property set to the current date:

Var button As New WebRadioButton("Today", True)
button.Tag = DateTime.Now
RadioGroup1.AddRow(button)

Sample code

This example shows adding a WebRadioButton to a WebRadioGroup:

RadioGroup1.AddRow(New WebRadioButton("Today", True))

This example shows adding a WebRadioButton to a WebRadioGroup with the Tag property set to the current date:

Var button As New WebRadioButton("Today", True)
button.Tag = DateTime.Now
RadioGroup1.AddRow(button)

Compatibility

Web projects on all supported operating systems.

See also

Object parent class; WebRadioGroup control.