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
Chua Wen Ching - 26 Sep 2004 14:37 GMT
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.
> Hi All,
> I am writing a c# console application in VS.net, every time I run the
[quoted text clipped - 7 lines]
> thanks
> min
Danny Springer - 26 Sep 2004 16:21 GMT
> Hi All,
> I am writing a c# console application in VS.net, every time I run the
[quoted text clipped - 4 lines]
> out there? It seems a simple problem, but I can't find any settings about
> this.
You can start it with Ctrl-F5 (Start without Debugging).
Regards,
Danny