Solved

Pause the console display when running a console app

Posted on 2004-09-15
3
270 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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