Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#4.0

Attaching a Console to a WinForms application

5.00/5 (3 votes)
18 Jan 2012CPOL 16.1K  
Very good tip. I just want to mention an alternative - you can just change your project output type to a console application. (You can undo it later if only needed for debugging). So if you started with a Windows Forms project in Visual Studio: Go to project properties/application/ and in the...

Very good tip. I just want to mention an alternative - you can just change your project output type to a console application. (You can undo it later if only needed for debugging). So if you started with a Windows Forms project in Visual Studio: Go to project properties/application/ and in the "output type" combobox, select Console app. Run your app and you will see all Console.WriteLine calls (...). Change back to a Windows Forms project, console is gone (no code changes needed).

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)