doing some uploading with inet control. this works. but, when i close the form its slow to close. only 2-3 sec. any ideas?
this is my statechanged event:

VB Code:
  1. Private Sub Inet1_StateChanged(ByVal State As Integer)
  2.    'On Error Resume Next
  3.     Select Case State
  4.            Case icNone
  5.            Case icResolvingHost:     txt.Text = txt.Text & vbCrLf & "Resolving Host"
  6.            Case icHostResolved:      txt.Text = txt.Text & vbCrLf & "Host Resolved"
  7.            Case icConnecting:         txt.Text = txt.Text & vbCrLf & "Connecting..."
  8.            Case icConnected:          txt.Text = txt.Text & vbCrLf & "Connected"
  9.            Case icRequesting:          txt.Text = txt.Text & vbCrLf & "Sending a request to the host."
  10.            Case icRequestSent:        txt.Text = txt.Text & vbCrLf & "Successfully sent the request."
  11.            Case icReceivingResponse: txt.Text = txt.Text & vbCrLf & "Receiving a response from the host."
  12.            Case icResponseReceived:   txt.Text = txt.Text & vbCrLf & "Transferring File..."
  13.            Case icDisconnecting:             txt.Text = txt.Text & vbCrLf & "Disconnecting..."
  14.            Case icDisconnected:              txt.Text = txt.Text & vbCrLf & "Disconnected"
  15.            Case icError:  MsgBox "Error:" & Inet1.ResponseCode & " " & Inet1.ResponseInfo
  16.            Case icResponseCompleted:  txt.Text = txt.Text & vbCrLf & "Process Complete.": Inet1.Execute , "CLOSE"
  17.     End Select