Click here to Skip to main content
15,886,110 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.
2.00/5 (1 vote)
4 Feb 2010CPOL 5.3K  
Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.
Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.

License

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


Written By
Software Developer GalacticSoft
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --