title: Windows application and message from asynchronous request
body: <p>I have developed a class library (former console application). I want to build a windows forms application arround it to do different kind of actions with the application. For example to pass different values of a startup parameter to the class library.</p>
  
  <p>The class library has a lot of console messages and an error object containing all kind of errors.</p>
  
  <p>On the windows forms application I put 2 textboxes. My goal is to output the console messages to the first textbox (txtMessages) and the errormessages to the second textbox (txtErrorMessages). </p>
  
  <p>The windows application will start the process in the class library as a new thread so it's asynchronous which will cause the windows forms application to instant refresh the textboxes</p>
  
  <p>How can I achieve this?</p>