Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

When you run a console application from visual studio the application run so fast and the console closes that you never see the output.

1.00/5 (1 vote)
20 Feb 2010CPOL 9.7K  
If you run the program without debugging, it will prompt you to enter any key to continue.If you are using a console application, and you use CTRL+F5 (in VS2008) you will get a Press any key to continue . . . At least that's the way it's always worked for me.Obviously, if you...
If you run the program without debugging, it will prompt you to "enter any key to continue".

If you are using a console application, and you use CTRL+F5 (in VS2008) you will get a "Press any key to continue . . . "

At least that's the way it's always worked for me.

Obviously, if you want to use debugging, then Console.ReadLine( ) is the preferred method.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)