all groups > visual studio .net ide > september 2004 >
You're in the

visual studio .net ide

group:

console application question


console application question vh
9/24/2004 3:33:36 PM
visual studio .net ide: Hi All,
I am writing a c# console application in VS.net, every time I run the
program, the console showed and disappeared very quickly, I can't see what
is displayed. Are there some settings that let the window stay there after
my program terminates? I know I can write my program to wait for a key
pressed, or set a break point at the end my main, but are there simpler ways
out there? It seems a simple problem, but I can't find any settings about
this.

thanks
min

RE: console application question Chua Wen Ching
9/26/2004 6:37:01 AM
Hi vh,

It only happens on debug mode.. it is common

Just place this line of code at the end of your console app

Console.ReadLine();

or you can choose not to debug, and the window will be there

Have Fun!

Cheers.

[quoted text, click to view]
Re: console application question Danny Springer
9/26/2004 5:21:33 PM


[quoted text, click to view]
You can start it with Ctrl-F5 (Start without Debugging).

Regards,
AddThis Social Bookmark Button