Results 1 to 2 of 2

Thread: Progressbar apperars so much late in visual basic Activex...!

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    1

    Progressbar apperars so much late in visual basic Activex...!

    Hi,
    I made an activex (with visual basic 6.0), that downloads a file to client..I converted cab file with package&deployment wizard, and signed it..
    There is an progressbar on the usercontrol(activex control form)..
    and set the progressbar value appropriate value while downloading..
    I use these lines:
    VB Code:
    1. Do
    2.     DoEvents
    3.     bData = InetDwn.GetChunk(CHUNK, icByteArray)
    4.     DoEvents
    5.     If i Mod (downloading_file_all_size / 10) = 0 Then
    6.         ' I used this line to increase progressbar value every 10 percent
    7.         'downloaded
    8.         DoEvents
    9.         DoEvents
    10.         ProgressBar1.Value = ProgressBar1.Value + 1
    11.         DoEvents
    12.         DoEvents
    13.         i = 0
    14.         DoEvents
    15.         DoEvents
    16.     End If
    17.     DoEvents
    18.     DoEvents
    19.     Put #intfile, , bData
    20.     i = i + 1
    21. Loop While UBound(bData, 1) > 0
    but progressbar is appeared after all downloading and show %100....
    (I wrote "DoEvents" much, to progressbar works properly, But this does not help..)
    How can I solve this problem..?

    Please HELP....
    Last edited by Hack; Feb 2nd, 2007 at 08:02 AM. Reason: Added [vbcode] [/vbcode] tags and indenting

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