|
-
Sep 29th, 2000, 06:53 AM
#1
Thread Starter
Frenzied Member
In my program i'm doing 3 for ... next and in each of them i'm using filecopy source,destination to copy a bunch of file and i want to put the file that is currently being copy on a label(now copying c:\test.txt....)but i think that the for...next it's too fast and my label only get the last file that i copy.What could i do???
-
Sep 29th, 2000, 06:58 AM
#2
Add LabelName.Refresh after you change the Caption property.
-
Sep 29th, 2000, 06:59 AM
#3
Addicted Member
Hi,
After each file copy you could put:
Code:
for ...
'copy file code
Label1.Refresh 'Add this
DoEvents 'Add this too if you want
next...
But if they are only really small files this may still not work as it will be going to fast!
Hope this helps
Shaun
Web/Application Developer
VB6 Ent (SP5), Win 2000,SQL Server 2000
-
Sep 29th, 2000, 07:34 AM
#4
Frenzied Member
If you really need to show all files you could either show all the files in the label: file1,file2,file3 or use a listbox to add all the files.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 29th, 2000, 10:57 AM
#5
Addicted Member
A bit unconventional but...
Heres a way to slow that down
after each label.refresh add
Code:
for ctr = 1 to 1000000
aa = xx
next ctr
that should slow it down a bit, strange way of doing it but it worked for me when my progressbar moved so fast there was no point.
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
|