Refresh labels in program

  • Thread starter Thread starter Prasun
  • Start date Start date
P

Prasun

Hello:

I have a Progress Bar in my program and I also wrote some code that will
show the Percent completed. I know that the percent complete is actually
being calculated but when i run the program it does not show up. Instead
when the process is complete it just shows the 100%. Is there a way that
the label can get refreshed so it actually shows the percentage change.
Should i be using a text box instead?

Thank You
Prasun
 
How are you implementing the increments? In the same thread as the UI? If
so, then a Application.DoEvents() should cause a repaint which should give
you what you want. Hwoever DoEvents is a pig so use it judiciously.
 
Back
Top