title: Console.Write in .NET GUI Application
body: <p>In a C# .NET GUI Application. I also need the console in the background for some tasks. Basically, I'm using a Thrid Party library for some processing (takes lot of time) which writes its intermediate results to console. This processing is a computationally time taking task. So, I'm assigning this task to backgroundworker. I mean background worker calls these library functions.  But problem is there is no way for me to show the user status of computation, because I don't have source of the library. I was hoping Console will be shown. But surprisingly <code>Console.WriteLine</code> doesn't seem to work. I mean, there isn't any console window shown. How come?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried setting application type = console. But there seems to be a problem. Only, main thread is able to access the console. Only <code>Console.WriteLine</code>s executed by main (Application) thread are displayed on console. <code>Console.WriteLine</code>s executed by other (BackgroundWorker)threads of the GUI, the output is not shown. I need console only for Background workers. I mean, When background worker starts, console starts &amp; when it ends console will be off.</p>