Click here to Skip to main content
15,437,415 members
Articles / Programming Languages / C# 4.0
Alternative
Tip/Trick
Posted 18 Jan 2012

Tagged as

Stats

13.2K views
2 bookmarked

Attaching a Console to a WinForms application

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
18 Jan 2012CPOL
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)


Written By
Austria Austria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 Simple and effective. Do the same wi... Pin
Carlos Roberto de Souza7-Feb-12 0:42
MemberCarlos Roberto de Souza7-Feb-12 0:42 
GeneralReason for my vote of 5 Great!!! :) 10x for the tip! Pin
raananv27-Jan-12 12:03
Memberraananv27-Jan-12 12:03 
Reason for my vote of 5
Great!!! Smile | :)
10x for the tip!
Generalthanks, I have used that when I needed to mix. However this ... Pin
fastal25-Jan-12 5:47
Memberfastal25-Jan-12 5:47 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.