title: Send and Receive commands via Telnet in C#
body: <p>I'm new with Telnet, and I need to write a small program in WPF (C#) which send and receive commands to a device via telnet.  </p>
  
  <p>Its starts by:  </p>
  
  <blockquote>
    <ol>
    <li>sending command "telnet 192.168.0.50" (in order to connect to the device)  </li>
    <li>Then sending "User" and "Password"  </li>
    <li>Then starting to send and receive data to the device, and all that communication need to appears on a WPF log screen.</li>
    </ol>
  </blockquote>
  
  <p>I have search on Google information on how to do it, but I didn't find something which was helpful for me.</p>
  
  <p>I'm asking here because I'm helpless and I need some directions in order to starts from somewhere... I'll really appreciate your help.</p>
  
  <p>Thank you.</p>