Hey.. I'm really new to the whole Network VB programming, but.. I have a question..

This code gives me the error::
Code:
Compile Error: Argument Not Optional..
on the txtData.Text = .. line.

VB Code:
  1. Private Sub cmdConnect_Click()
  2.  
  3. sock.RemoteHost = txtIP.Text
  4. sock.RemotePort = txtPort.Text
  5. sock.SendData (Chr(254) + Chr(253) + Chr(0) + Chr(126) + Chr(255) + Chr(255) + Chr(255))
  6.  
  7.  
  8. txtData.Text = sock.GetData()
  9.  
  10. End Sub

How do I fix?


Thanks,


DF