Results 1 to 3 of 3

Thread: Clearing Console in C# (Cant get two source codes to work, maybe you guys can help)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Location
    Kentucky
    Posts
    29

    Clearing Console in C# (Cant get two source codes to work, maybe you guys can help)

    The first code is here:
    http://www.codeproject.com/csharp/winconsole.asp#xxxx

    I tried to open the project file but I am using an older version of VS .NET and it said it was incompatible. Then I tried adding all the source files to a project and compiling, but it gave me compile errors, something about not reckognizing something.

    The second is on MSDN, but I cant find the article now. What it did was basically make a console class that had functions and whatnot that would clear it. However, when I compiled it (exactly according to the tutorial thing), I got "expected delegate, class, or enum" compile error.

    Well, I am at my wits end. Planetsourcecode doesnt have clear console code for C#, and I need it to finish my tictactoe game. Anyone have any advice? Thanks.

  2. #2
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    Have you tried:
    Code:
    Console.Clear();

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width