how can i make downloading info like what now is downloading
label1.text = "Downloading - VisualStudio.exe"
ProgressBar1.Value = 50
My.Computer.Network.DownloadFile("https://URL.com/VisualStudio.exe", "VisualStudio.exe")
label1.text = "Downloading - Visual.exe"
My.Computer.Network.DownloadFile("https://URL.com/VisualStudio.exe", "Visual.exe")
ProgressBar1.Value = 100
label1.text = "Downloaded!"
Someting like that
CodePudding user response:
May be you can achieve simply like this.
Add a dialog to your project. (Add->New Item->Dialog(winforms).
Remove every default created control on dialog.
Add a Label
and add a ProgressBar
to the dialog at appropriate places and size.
Initially hide the dialog.
When your business starts, show the dialog as a modal dialog
//Do the business
//Update label and progress bar accordingly
When your business ends, close the dialog.