Console.WriteLine

  • Thread starter Thread starter Jason Carter
  • Start date Start date
J

Jason Carter

What window should the Console.WriteLine display at? The
immediate window? If so, it is printing there and I don't
know why.
 
Jason Carter said:
What window should the Console.WriteLine display at? The
immediate window? If so, it is printing there and I don't
know why.

It's printed in the console window that is automatically displayed when
making a console application. Choose the "console application" template when
creating a new project, or change the project type later in the project's
properties.
 
Hello,

Jason Carter said:
What window should the Console.WriteLine display at? The
immediate window? If so, it is printing there and I don't
know why.

In Windows Forms applications the text will be printed to the output
window. If you want to use a console with a Windows Forms application,
you can use 'AllocConsole' (PInvoke). If you want a real console-only
application, create a project of type Console Application.
 
Back
Top