en los 2, es el mismo
lo copie
lo copie
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
Private Sub Command1_Click()
On Error Resume Next
Ws.RemoteHost = Text3.Text
Ws.Connect
Private Sub Command2_Click()
form2.show
[b]esto esta con winsock[/b]
Private Sub Form_Load()
Ws.Connect
End Sub
Private Sub Ws_DataArrival(ByVal bytesTotal As Long)
Dim datos As String
Ws.GetData datos
Text1.Text = Text1.Text & datos & vbCrLf
End Sub
Private Sub Command2_Click()
On Error Resume Next
Dim enviar As String
enviar = Text4.Text & " dice: " & Text2.Text & vbCrLf
Ws.SendData enviar
End Sub
[b]copie el mismo winsock de arriba[/b]
Winsock1.Connect
, esa es una duda xfa
Private Sub Command1_Click()
On Error Resume Next
Ws.RemoteHost = Text3.Text
Ws.Connect
Timer1.Interval = 2000
End Sub
Private Sub Timer1_Timer()
If Not Ws.State = 7 Then
Label3 = "Desconectado"
Else
End If
If Ws.State = 7 Then
Label3 = "Conectado"
Else
End If
End Sub