Solved

Pause the console display when running a console app

Posted on 2004-09-15
3
226 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
3 Comments
 
LVL 15

Accepted Solution

by:
Timbo87 earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you both.  Will use Timbo87's answer for now.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now