Hi all,
I have a simple progress bar and label. For each step the progress bar takes, I want to display a different message to the user in the label. It's simply not working though it seems like it should be so simple...
Here's the code:
'sets the progress bars min, max, step, & initial value
pbar.Maximum = 10000
pbar.Minimum = 0
pbar.Step = 10
pbar.Value = 0
While pbar.Value < pbar.Maximum
pbar.PerformStep()
label2.Text = choiceWords(tval)'my function
tval += 1
End While
label2.Text = "Done!"
When I debug, I see that the label's text value is changed appropriately, but it does not show on the form at all. Only the "Done" message shows at the end. Visible property is set to True. I'm not sure what's going on here.
Thanks for your help!
prgmrgirl
I have a simple progress bar and label. For each step the progress bar takes, I want to display a different message to the user in the label. It's simply not working though it seems like it should be so simple...
Here's the code:
'sets the progress bars min, max, step, & initial value
pbar.Maximum = 10000
pbar.Minimum = 0
pbar.Step = 10
pbar.Value = 0
While pbar.Value < pbar.Maximum
pbar.PerformStep()
label2.Text = choiceWords(tval)'my function
tval += 1
End While
label2.Text = "Done!"
When I debug, I see that the label's text value is changed appropriately, but it does not show on the form at all. Only the "Done" message shows at the end. Visible property is set to True. I'm not sure what's going on here.
Thanks for your help!
prgmrgirl