pause program at console

This is a discussion on pause program at console within the C# Programming forums, part of the General Programming Boards category; Well i just started C# and how would i pause the programm so that the console wont just show and ...

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    pause program at console

    Well i just started C# and how would i pause the programm so that the console wont just show and go e.g


    system( "pause"); // for c and c++

    whats for c# thanks and yeah good books for c sharp yhe ones that tell ya how to make win32 apps not console ..

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    You can use Console.Read() to wait for a keypress.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MSVC++2008 console program portability
    By CodeMonkey in forum Windows Programming
    Replies: 1
    Last Post: 11-18-2008, 03:13 AM
  2. Program the Console Buffer into FULLSCREEN
    By IrishSlasher in forum Windows Programming
    Replies: 1
    Last Post: 11-06-2002, 03:18 AM
  3. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  4. my first windows console program
    By Syneris in forum Windows Programming
    Replies: 3
    Last Post: 04-08-2002, 04:18 PM
  5. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21