Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Progress Bar on Download

Posted on 2007-09-28
4
Medium Priority
?
162 Views
Last Modified: 2012-06-21
Just looking for links or guidance with using the Winsock controller to download a file, and update the progress on the progressbar.

Thanks
0
Comment
Question by:B_Dorsey
  • 3
3 Comments
 
LVL 13

Accepted Solution

by:
hiteshgoldeneye earned 2000 total points
ID: 19983805
0
 
LVL 13

Expert Comment

by:hiteshgoldeneye
ID: 20296011
Please delete the following code from the UserForm code and then the code will run fine
' lock the window update to avoid flickering
    SendMessageLong hwnd, WM_SETREDRAW, False, &O0

    ' clear the treeview
    Do
        hItem = SendMessageLong(hwnd, TVM_GETNEXTITEM, TVGN_ROOT, 0)
        If hItem <= 0 Then Exit Do
        SendMessageLong hwnd, TVM_DELETEITEM, &O0, hItem
    Loop
   
    ' unlock the window
    SendMessageLong hwnd, WM_SETREDRAW, True, &O0
End Sub
0
 
LVL 13

Expert Comment

by:hiteshgoldeneye
ID: 20296015
sorry posted for wrong question
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question