I am using the .net 2.0 (not sure if for 1.1 also) background worker controll.

I am telling it to give the progress and I don't know how to use the get progress function.

        private void backgroundWorker_Cookies_ProgressChanged(object sender, ProgressChangedEventArgs e)
            int percent = 0;
            progressBar1.Value += 10;
That is what I have but here is what it says...

void backgroundWorker_Cookies.ReportProgress(int percentProgress)
So how do I get that percent over to the progress bar I have. They are both ints with values 0-100.