Results 1 to 7 of 7

Thread: Console Applications - Clear Screen?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112

    Console Applications - Clear Screen?

    I am building a console application (for school). I am displaying a menu, and upon a user selection another menu will be displayed. Is there a way to clear the screen (eg. cls - DOS) .

    Thanks.

    Shook

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Here is a C# class that give you more console functionality. You should be able to get the info you need from it because it implements a clearscreen method.

    forgot to add the link:
    http://www.c-sharpcorner.com/Code/20...SysConsole.asp
    Last edited by hellswraith; Dec 11th, 2002 at 08:40 PM.

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Code:
    Console.Writeline("cls");
    Dont gain the world and lose your soul

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by DevGrp
    Code:
    Console.Writeline("cls");


    what is that supposed to do clear the msdos screen?
    I;ve tried hellswraith's solution before and it works. But dunno about your cls command
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Thought that would work, but it did'nt. I guess I was too busy enjoying everquest online. I'm beta testing it for the PS2
    Dont gain the world and lose your soul

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by DevGrp
    Thought that would work, but it did'nt. I guess I was too busy enjoying everquest online. I'm beta testing it for the PS2
    lol

    I bougth an Xbox a while ago, when it was $300 I want a PS2!!!!!!
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  7. #7
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I am going to get an Xbox when the price drops + Splinter cell.
    Dont gain the world and lose your soul

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