Results 1 to 5 of 5

Thread: too fast !!!!

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Smile

    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???

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Add LabelName.Refresh after you change the Caption property.

  3. #3
    Addicted Member S@NSIS's Avatar
    Join Date
    Aug 2000
    Location
    Stoke-On-Trent, England
    Posts
    243
    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

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  5. #5
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Cool 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.
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width