string[] idit = File.ReadAllLines(textBox2.Text);
foreach (string barcoutn in idit){
barcountmax++;
}
foreach (string ids in idit){
//do sql stuff
barmovement++;
bgw1.ReportProgress(barmovement);
}
private void bgw1_ProgressChanged(object sender, ProgressChangedEventArgs e){
progressBar1.Value = e.ProgressPercentage;
}
My progressbar properties are set from the barcountmax for the max value and min value = 0.
I can't seem to get my progress bar to update, what am i missing?