CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2002
    Location
    Charleston, SC
    Posts
    2

    Cursor Position in a DOS Console Application

    How do I get the user input line to be entered on the same line as a question being asked?

    EX:

    Console.WriteLine("Input a number:");
    number = Convert.ToInt32(Console.ReadLine());

    Console.WriteLine("The number that you entered was {0}", number);

    If I run this simple example, my Blinking cursor is on the next line below waiting for the user input. Just wondering how I can get it on the same line. Thanks!


    APASuper8

  2. #2
    Join Date
    Mar 2002
    Location
    Alpharetta, GA
    Posts
    51
    use Console.Write

  3. #3
    Join Date
    Sep 2002
    Location
    Charleston, SC
    Posts
    2
    Thanks.

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

Featured