为什么使用inet控件传输数据,其StateChanged事件始终是icReceivingResponse状态?
Private Sub Command1_Click()Command1.Enabled = FalseMe.MousePointer = 11If Len(Text1.Text) > 5 ThenText2.Text = Inet1.OpenURL(Text1.Text, icString)ElseMsgBox "输入网址错误"End IfEnd SubPrivate Sub Form_Terminate()If Inet1.StillExecuting ThenInet1.CancelEnd IfEnd SubPrivate Sub Inet1_StateChanged(ByVal State As Integer)Select Case StateCase icConnectingLabel2.Caption = "正在建立连接......"Case icConnectedLabel2.Caption = "建立连接成功"Case icReceivingResponseLabel2.Caption = "正在传输数据......"Case icErrorLabel2.Caption = "传输中发生错误"Case icDisconnectedLabel2.Caption = "数据传输完毕"Me.MousePointer = 0Command1.Enabled = TrueEnd SelectEnd Sub