473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Console.WriteLine does not appear to work

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 !

Nov 21 '05 #1
4 10633
Rob schrieb:
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
Nov 21 '05 #2
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" <rw*****@comcast.net> wrote in message
news:9f********************@comcast.com...
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 !

Nov 21 '05 #3
"Rob" <rw*****@comcast.net> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Rob

Thanks... now I see it !!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
"Rob" <rw*****@comcast.net> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
7
by: shawnk | last post by:
Hello Everyone How do you format format numbers right-justified using Console.WriteLine(), i.e I need to line up numbers in vertical columns and the MSDN documentation is pretty poor Here is the...
7
by: ajikoe | last post by:
Hello All, It is said that : Enabling the console window is easy. From Microsoft Visual Studio®, right-click on the project and choose Properties. Change the output type from Windows Application...
5
by: Publicjoe | last post by:
I am working on a little app which uses colour in the console window. I have created a class to extend the console functionality but the ClearScreen method does not work correctly. I am enclosing a...
19
by: Jeff S | last post by:
Whenever I execute any Console commands (Console.WriteLine "yada yada yada"), the console does not appear. It doesn't even flash by. I want to be able to use Console commands. Any ideas? I'm...
4
by: Bob | last post by:
I just recently noticed that when I start my applicatoin in debug mode, the IDE hangs (no disk or CPU activity) indefinitely (at least 20 minutes). Pausing the application shows that it's hung up...
3
by: Andrew Ducker | last post by:
We were using Console.Writeline from within our app, to do some routine debugging. And then we started having random problems when the code was run by a tester, on their own machine. We...
2
by: djc | last post by:
out of all the overloads that pop up via intellisense for console.writeline() the following one confuses me: Console.WriteLine (string format, params object arg) 1) whats the deal with...
4
by: eduardorp1 | last post by:
I have a GUI application that needs to be invoked from the command line as well. It should work both as a GUI and as a console application. When I invoke it from the command line, it reads all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.