Skip to content

EnableButton Method

Description

Enables or disables a button in the task dialog.

Syntax

Public Sub EnableButton( _
    ByVal [Id] As Long, _
    ByVal [Enable] As Boolean _
)

Parameters

  • Id: Indicates the ID of the button to be enabled/disabled.
  • Enable: False to disable the button, True to enable the button.

Remarks

Use the EnableButton method to enable or disable a specific button in the task dialog.

Notes

  • The ClickButton method should only be called after the dialog has been Constructed.
  • The ClickButton method can be used to simulate the action of a button click in the task dialog and will cause the ButtonClicked event to fire.
  • The ButtonClicked event occurs when a button is clicked and is used to determine which button was selected. The AddButton method is used to add buttons.
  • The AddButton method adds a user-defined button to the task dialog's command area.
  • The DefaultButton may be any of the values specified when calling the AddButton method. If DefaultButton is zero or its value does not correspond to any button ID in the dialog, then the first button in the dialog will be the default.

See Also


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