Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
20 Feb 2010CPOL 9.6K  
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)


Written By
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.

Comments and Discussions

 
-- There are no messages in this forum --