I added some timers for my progress bar so the progress bar increases after every step. It actually looks like its loading

so every time you increased the value of the progress bar I did the same but just had it enable the next timer and so on. Then I played with each timer time for the effect
Again, Nice source that you have released, I have learned so much from it. The last thing I want added to have mine do is:
- Give an error message if, lets say the download website is not up or there is no file on the web server. maybe a message if there is no Internet even.
I added a loading form on my loader like you did, but when its downloading the files I would like to know what kind of code is needed to generate the error message? anyone know?
So far I have this for the downloading part,
PHP Code:
Private Sub step2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles step2.Tick
ProgressBar1.Value = (33)
status.Text = ("Status: Downloading Update")
ProgBarTimer1.Enabled = False
ProgBarTimer2.Enabled = True
If My.Computer.FileSystem.FileExists("C:\************\********\*****.exe") = False Then
Try
My.Computer.Network.DownloadFile("http://**********/*******/*****.exe", "C:\************\********\*****.exe")
step3.Enabled = True
step2.Enabled = False
Catch ex As Exception
End Try
Else
status.Text = ("Status: Unable To Connect, Please Try Again")
ProgBarTimer1.Enabled = False
ProgBarTimer2.Enabled = False
retry.Visible = True
End If
End Sub
My "Else" part don't work for some reason, lol
Any Help Anyone?
Thanks,
FB
UPDATE:
I found a way to do it but its a noob way I bet, I still would like the better way if there is one?
Here is what I did,
PHP Code:
If My.Computer.Network.IsAvailable.Equals("http://**********/*******/*****.exe") = False Then
status.Text = ("Status: Unable To Connect, Please Try Again")
ProgBarTimer1.Enabled = False
ProgBarTimer2.Enabled = False
retry.Visible = True
step2.Enabled = False
End If
Thanks again,
FB