Click here to Skip to main content
Click here to Skip to main content

Attaching a Console to a WinForms application

By , 18 Jan 2012
 

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)

About the Author

johannesnestler
Austria Austria
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralReason for my vote of 5 Simple and effective. Do the same wi...memberCarlos Roberto de Souza7 Feb '12 - 0:42 
Reason for my vote of 5
Simple and effective. Do the same with less effort.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 18 Jan 2012
Article Copyright 2012 by johannesnestler
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid