Console.WriteLine does not appear to work

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

I am reading a VB.net book which includes many samples where the author uses
the Console.Writeline feature to illustrate a point. I assume that is
Console.Writeline is supposed to send something to the Display. Any reason
why that may not work on my system ?

Thanks !
 
Rob said:
I am reading a VB.net book which includes many samples where the author uses
the Console.Writeline feature to illustrate a point. I assume that is
Console.Writeline is supposed to send something to the Display. Any reason
why that may not work on my system ?


Maybe it's not a console application?

Armin
 
Yes, in order to do this you have to be a console app. However, you can get
the same effect using Debug.Writeline, which will write to the output window
if you are running in Visual Studio. Otherwise, make yourself a floating
window, stick a multiline text box onto it and append your output to it's
text (with a crlf at the end).
 
Rob said:
I am reading a VB.net book which includes many samples where the author
uses the Console.Writeline feature to illustrate a point. I assume that
is Console.Writeline is supposed to send something to the Display. Any
reason why that may not work on my system ?

Make sure your project is a Console Application. You can change the project
type in the project's properties dialog.
 
Thanks... now I see it !!

Herfried K. Wagner said:
Make sure your project is a Console Application. You can change the
project type in the project's properties dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top