The Internet Transfer Control raises one event, the "StateChanged" event.
I'ts supposed to raise this event when "An error was detected when communicating with the remote computer".
My application's connection to the web page is fine, but when i'm trying to simulate an error (in order to handle a situation in which my web server is down) by renaming the file the control is addressing, the state parameter doesn't get the value 11, which indicates a state where "An error was detected when communicating with the remote computer".
This is the StateChanged event handle code:
Private Sub Inet1_StateChanged(ByVal State As Integer)
Select Case State
Case 12
do some stuff
Case 11
do some stuff
End Select
End Sub
For some reason, when an error eccurs, the program control doesn't go to case 11.
Anyone knows why?
I'ts supposed to raise this event when "An error was detected when communicating with the remote computer".
My application's connection to the web page is fine, but when i'm trying to simulate an error (in order to handle a situation in which my web server is down) by renaming the file the control is addressing, the state parameter doesn't get the value 11, which indicates a state where "An error was detected when communicating with the remote computer".
This is the StateChanged event handle code:
Private Sub Inet1_StateChanged(ByVal State As Integer)
Select Case State
Case 12
do some stuff
Case 11
do some stuff
End Select
End Sub
For some reason, when an error eccurs, the program control doesn't go to case 11.
Anyone knows why?