private void button1_Click(object sender, EventArgs e)
{
//progress bar
backgroundWorker1.RunWorkerAsync();
progressBar1.Value = 1;
progressBar1.Minimum = 1;
progressBar1.Maximum = 10;
label3.Text = "backgroundworker Task completed";
Thread.Sleep(100);
Application.DoEvents();
// end of bgw
}
I am getting error on the Backgroundworker1.RunworkerAsync()
where it shows an error of Backgroundworker
is busy and try to use it aftertime.
Is there any other method to solve. I thank in advance.