Label6 = " 正在连接主机..."
Command1.Caption = "取消"
Do While Command1.Caption = "取消" And Winsock1.State <> 7
DoEvents
Loop
'If Command1.Caption = "取消" Then Command1.Caption = "发送" ': Exit Sub
If Winsock1.State = 7 Then
Label6 = " 正在发送短信息..."
Winsock1.SendData msg
DoEvents
End If
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
Winsock1.GetData strData