Muokkaa

Jaa


TaskDialogProgressBar.State Property

Definition

Gets or sets the state of the progress bar.

public:
 property System::Windows::Forms::TaskDialogProgressBarState State { System::Windows::Forms::TaskDialogProgressBarState get(); void set(System::Windows::Forms::TaskDialogProgressBarState value); };
public System.Windows.Forms.TaskDialogProgressBarState State { get; set; }
member this.State : System.Windows.Forms.TaskDialogProgressBarState with get, set
Public Property State As TaskDialogProgressBarState

Property Value

The state of the progress bar. The default is Normal, except if this instance is the default instance created by a TaskDialogPage, where the default value is None.

Exceptions

The property is set on a progress bar instance that is currently bound to a task dialog, but the value to be set is None. - or - The property is set on a progress bar instance that is currently bound to a task dialog, but it's not visible as its initial State property value was None. - or - The property is set on a progress bar instance that is currently bound to a task dialog, but the dialog has just started navigating to a different page.

Remarks

This control will only be shown if this property is not None.

This property can be set while the dialog is shown. However, while the dialog is shown, it is not possible to change the state from None to any other state, and vice versa.

Applies to