I've a (C#).NET GUI application. Where I need console for displaying some output. The code that (is writing to console) contains Console.WriteLine
statements is executed by the BackgroundWorker & not the main thread.
Some one suggested,here: http://stackoverflow.com/questions/3385097/console-write-in-net-gui-application/3385142 that making your application typeConsole Application
instead of "Windows Application" will do the job. But this is only working when the Main Thread (GUI thread) is writing to console. More over, I don't need Console to be displayed when application starts. I only want it when background worker begins its work and when its finished, I want console to disappear.
How can display console as required?