title: Redirect console input and output to a textbox
body: <p>Hi there and thanking in advance</p>
  
  <p>I am trying (very hard) to redirect Console input and output into a textbox. So far output is working fine but the trouble is with input.
  For example I cannot execute a simple program that will do the following:</p>
  
  <p>Console.WriteLine("Please enter your name: ");
  string name = Console.ReadLine();
  Console.WriteLine("Hi there " + name);</p>
  
  <p>The reason I can't achieve this is because that the program has to stop while waiting for user to type his/her name and press enter. If I wait for user input on a new thread then the main GUI thread freezes and the textbox can never receive the KeyPress. This thing has me totally stumped. Any advice (or better still code) would be greatly appreciated.</p>
  
  <p>Cheers </p>