Hawkeye123456
Programmer
This is the code that I have right now
and txtstuff is a rich text box
Private Sub client_DataArrival(ByVal bytesTotal As Long)
Dim stuff() As String, i As Integer
Dim str As String
client.GetData str
stuff = Split(str, Chr(255))
For i = 0 To UBound(stuff)
If Trim(stuff(i)) <> "" Then
txtStuff.SelColor = RGB(0, 0, 255)
txtStuff.SelStart = 1 'Len(txtStuff)
txtStuff.Text = txtStuff.Text & stuff(i) & vbCrLf
End If
Next i
End Sub
and txtstuff is a rich text box
Private Sub client_DataArrival(ByVal bytesTotal As Long)
Dim stuff() As String, i As Integer
Dim str As String
client.GetData str
stuff = Split(str, Chr(255))
For i = 0 To UBound(stuff)
If Trim(stuff(i)) <> "" Then
txtStuff.SelColor = RGB(0, 0, 255)
txtStuff.SelStart = 1 'Len(txtStuff)
txtStuff.Text = txtStuff.Text & stuff(i) & vbCrLf
End If
Next i
End Sub