Hey I'm trying to get my background worker to send a parameter back to the main thread in my form whenever it changes..
Within the method that the background worker runs I have this
worker.ReportProgress(p);
p is the variable in a for loop that is running
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
label6.Text = e.ToString();
}
I'm trying to get this label text to change to p as the background worker goes through the loop.
Thanks for any help!! :)