Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A problem with the Internet Transfer Control

Status
Not open for further replies.

jamesa74

Programmer
Jan 10, 2001
20
IL
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?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top