Results 1 to 12 of 12

Thread: Clearing the Console screen

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Location
    Fort Hood, Texas
    Posts
    7

    Question Clearing the Console screen

    Yes I know,

    Who in the world would use console in VB.Net . . . The instructor for the .Net class I'm in.

    I'm using Deitels Visual Basic .Net (How to Program second edition) and it doesn't give any examples or explanation on clearing a console window. I know C++ uses system("cls") to clear the screen, I'm pretty sure .Net has a similar feature.

    My program works fine, it loops like its supposed to do.

    I just wanted to know if there is any way to clear the console window between loops?

    My program flows like this:

    1. initilize varables and set flag to true

    2. begin loop (test if flag is true) (if flag is false skip loop)
    prompt user for data
    get user responce

    calculations done
    assign calculation values to varables

    prompt user if they wish to do another calculation
    get user responce
    if yes loop through the process until user enters no

    **** This is where I want to clear the screen ****
    **** what code if any is needed here? ****

    3. If No then set flag to false and move to the top of the loop
    4. exit program
    Last edited by -]SC[-Dargoth; Sep 5th, 2003 at 01:19 PM.

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