Solved

Pause the console display when running a console app

Posted on 2004-09-15
3
275 Views
Last Modified: 2011-09-07
So sorry to ask this but I'm totally new to .NET and don't know what to look under in help.  I have an application that consists of one entire statement, Console.Writeline("hello").  It flashes so quickly at runtime, I can't read it.  I don't see a pause option????

Thanks : )
0
Comment
Question by:FatalErr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
Timbo87 earned 125 total points
ID: 12071239
Add Console.ReadLine()

If you want to spruce it up a bit:

Console.WriteLine("Press enter to continue...")
Console.ReadLine()
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12071714
Or if you do not want user input you can use

Thread.Sleep(1000) to sleep the current thread for sometime
0
 
LVL 1

Author Comment

by:FatalErr
ID: 12077629
Thank you both.  Will use Timbo87's answer for now.
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question