I have a script that goes out and downloads files from a url. In my form I have a listbox that I use like a message queue. After each download I send a completion notice to the listbox. The problem I am having is the messages only get sent at the end of my script. In short, I download several hundred files and the completion messages are not received in my listbox till after all the files have completed downloading. Does anyone have any suggestions that I may follow, so that after each download it will send the message to the listbox before the next download starts?
Dim GetMe As Integer
Dim MeURL As String
Dim MePath As String
MeURL = "https://my url to download here"
MePath = "c:my path to save download"
GetMe = URLDownloadToFile(0, MeURL, MePath, 0, 0)
listbox1.Items.Add("this file download completed")