C# - Delays using Console

Discussion in 'Programmer's Corner' started by atferrari, Jan 4, 2009.

  1. atferrari

    Thread Starter AAC Fanatic!

    Jan 6, 2004
    2,648
    762
    C# - Using Console.

    I need to implement delays between actions.

    They should happen once or be asigned to repetitive actions.

    I identified Threading.Timer and Timers.Timer already but I can not find how they should be used.

    Could anyone explain how, showing a sample of code?

    Gracias.
     
  2. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    What is a console?
     
  3. atferrari

    Thread Starter AAC Fanatic!

    Jan 6, 2004
    2,648
    762
    In the C# environment is the window that opens for basic input/utput without the GUI and associated frills provided by the windows in WIN XP among others.

    Please do no take this as an exact definition of "Console". Is what I understand from all this as a newcomer to C#.

    Can you help now?
     
  4. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    I am sorry I can't help you. I though you was talking about delays with a microcontroller.
     
  5. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
  6. elep

    New Member

    Jan 7, 2009
    3
    0
    Most likely you are looking for solution of your problem in a wrong place, because it is very strange to delay console application.
    If you want to let user to read text output from you application, you’d better ask him to hit a key, when he read the text.
    Anyway can you please a bit better explain what problem you are trying to solve?
     
  7. atferrari

    Thread Starter AAC Fanatic!

    Jan 6, 2004
    2,648
    762
    I think I am looking in the right place.

    I want to be able implementing:

    a) delays between actions (once)

    b) delays between actions (repetitive)

    Some of the replies I got up to now are doing that. Next step is learning to use them in full.
     
  8. atferrari

    Thread Starter AAC Fanatic!

    Jan 6, 2004
    2,648
    762
Loading...