I'm doing network scanning application. The application works fine, just I want to add ProgressBar
which show the progress start from when user click scanning until scan completed.
private void scanClick(object sender, System.EventArgs e)
{
if (StatusLabel.Text == "Ready")
{
StatusLabel.Text = "Please wait while processing is done...";
}
//scanning operation begins
//label changed when scan completed
StatusLabel.Text = "scan completed";
}
Now I have a progress bar something like this:
How to synchronize the progress bar with the scan job. Please advise.