How to open black Console(Output) Window in windows form application in Visual Studio

35,586

Solution 1

Default key mapping is Ctrl + W,O

Or do View menu -> Output window

There is also an immediate window which let's you execute statements, like ?myVal and it will tell you the value. It can be found at Ctrl+D,I or Debug->Windows->Immediate

Solution 2

That's a console window`, and you open it with AllocConsole. See all of the Console Functions at MSDN.

Solution 3

Do not hesitate, install on your Visual Studio the Open Command Line extension. You can see how easy is to open a new cmd console on the picture below:

enter image description here

Share:
35,586
Sammy
Author by

Sammy

SOreadytohelp

Updated on June 06, 2020

Comments

  • Sammy
    Sammy almost 4 years

    I can't find how to open that black window that I can cout and stuff. I would appreciate if anybody could help.

    Thank you very much in advance.

  • Sammy
    Sammy about 13 years
    Thank you very much for your help. But could you please be a little bit more helpful? Should I just call AllocConsole() and it is going to create the black screen and the output when I cout? Because if so, it doesnt work or I do it wrong. Thank you very much in advance.