Skip to content

AddRadioButton Method

Description

Adds a user-defined radio button to the task dialog's command area.

Syntax

Public Sub AddRadioButton( _
    ByVal Text As String, _
    ByVal Id As Long _
)

Parameters

  • Text: String to be used to label the radio button.
  • Id: Indicates the value to be returned when this button is selected and the RadioButtonClicked event fires.

Remarks

AddRadioButton adds a user-defined radio button to the task dialog's command area.

The DefaultRadioButton may be any of the values specified when calling the AddRadioButton method. If DefaultRadioButton is zero or its value does not correspond to any radio button ID in the dialog, then the first button in the dialog will be the default.

The RadioButtonClicked event occurs when a radio button is clicked and is used to determine which radio button was selected. The AddRadioButton method is used to add radio buttons.

The ClickRadioButton method can be used to simulate the action of a radio button click in the task dialog and will cause the RadioButtonClicked event to fire.

Radio Buttons

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.