Hi,

I have a batch process which reads all the records from a database
table and does something with them.   The whole process takes about 5
minutes.

I want to display a label showing the percentage done.

I tried:

  myLabel.Caption = CSTR(ROUND(100*(xDone/xTotal),2))
  DOEVENTS

inside of the loop, but the caption only shows after the first record
processed.   Afterwards it doesn't refresh.

I also have a picturebox which I want to use as a progress control (by
changing its width), but that doesn't refresh either....

Is there a trick on how to refresh the form controls?

Best regards,
Edgard Riba


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to