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


Progress Bar on Download

Posted on 2007-09-28
Medium Priority
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.

Question by:B_Dorsey
  • 3
LVL 13

Accepted Solution

hiteshgoldeneye earned 2000 total points
ID: 19983805
LVL 13

Expert Comment

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
        hItem = SendMessageLong(hwnd, TVM_GETNEXTITEM, TVGN_ROOT, 0)
        If hItem <= 0 Then Exit Do
        SendMessageLong hwnd, TVM_DELETEITEM, &O0, hItem
    ' unlock the window
    SendMessageLong hwnd, WM_SETREDRAW, True, &O0
End Sub
LVL 13

Expert Comment

ID: 20296015
sorry posted for wrong question

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