EnableRadioButton Method
Description
Enables or disables a radio button in the task dialog.
Syntax
Public Sub EnableRadioButton( _
ByVal Id As Long, _
ByVal Enable As Boolean _
)
Parameters
- Id: Indicates the ID of the radio button to be enabled/disabled.
- Enable: False to disable the radio button, True to enable the radio button.
Remarks
Use the EnableRadioButton method to enable or disable a specific radio button in the task dialog.
Notes:
- The
ClickRadioButtonmethod should only be called after the dialog has been Constructed. - The
ClickRadioButtonmethod can be used to simulate the action of a radio button click in the task dialog and will cause the RadioButtonClicked event to fire. - 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 AddRadioButton method 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.

See Also
- TaskDialog Control
- AddRadioButton Method
- DefaultRadioButton Property
- RadioButtonClicked Event
- ClickRadioButton Method
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.