Progress Bar on Download

Just looking for links or guidance with using the Winsock controller to download a file, and update the progress on the progressbar.

Thanks
LVL 14
B_DorseyAsked:
Who is Participating?
 
Hitesh ManglaniCommented:
0
 
Hitesh ManglaniCommented:
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
 
Hitesh ManglaniCommented:
sorry posted for wrong question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.