|
-
Oct 10th, 2000, 09:01 AM
#1
Thread Starter
Lively Member
I've got a loop that reads in lines of text from a text file and parses it to store the info in an Oracle database. In the loop, I have a small calculation that determines the percent complete and updates
* a progress bar
* a label
my problem is the label flickers like crazy since its going through the loop so fast, and i think it looks unprofessional.
How can I eliminate that flicker?
Many thanks
-
Oct 10th, 2000, 09:34 AM
#2
Addicted Member
reduce the 'update speed' of your progressbar and label.
Following reduces it by '100'
Use a counter:
dim lCount as integer
If lCount Mod 100 = 0 Then
lCount = 1
'update label and progressbar
Else
lCount = lCount + 1
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|