[]
You can easily add a progress bar by using the C1ProgressBar class and members to customize the progress bar. A progress bar can be used to indicate the progress of a lengthy operation. The progress bar consists of an area that is filled from left to right as an operation progresses.
Complete the following steps to make the progress bar visible:
The following code makes the progress bar visible:
To write code in Visual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
C1TaskDialog1.ProgressBar.State = TaskDialogProgressBarState.Indeterminate
C1TaskDialog1.ProgressBar.Visible = True
End Sub
To write code in C#
public Form1()
{
InitializeComponent();
c1TaskDialog1.ProgressBar.State = TaskDialogProgressBarState.Indeterminate;
c1TaskDialog1.ProgressBar.Visible = true;
}
In this topic you've made the progress bar visible in a dialog box and set the progress bar's state.