Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

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

By , 20 Feb 2010
Rate this:
Please Sign up or sign in to vote.
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)

About the Author

hammerstein05
Software Developer
United States United States
I'm originally from the UK, I hail from Saddleworth (near Manchester). I moved to the US in 2007 and live with my wife and daughter in New Jersey.
 
I started late into software development and do as much learning as I can. I've been a developer for 10 years, starting with Business BASIC on DG/UX boxes, moving to do Windows Mobile development using .NET CF. My tool of choice is C#, however I'll pick at whatever language is good for the job.
 
I struggle to concentrate on one thing, so don't really learn a topic very well before moving on to the next. It's my aim to sort this out and learn more about C#, the language, the design and more importantly how to use it like the masters I see on this site.
Follow on   Twitter

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 20 Feb 2010
Article Copyright 2010 by hammerstein05
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid