Monday, February 23, 2009

C# update progressBar from backgroundWorker

private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
{
    progressBar.BeginInvoke(new MethodInvoker(delegate
       {
            //setProgress(10);
            progressBar1.Value += 10;
        }));
}

No comments: