Results 1 to 2 of 2

Thread: VB.NET - Console input on same line? +

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83

    VB.NET - Console input on same line? +

    With VB.NET how do I get a response to:

    Console.WriteLine("my question here: ")
    sUserInput = System.Console.ReadLine()

    To appear like this:

    my question here: (User can type here)
    instead of down here......

    And is there anyway to change the color of
    text in a console app? How about the backround?
    Last edited by Jes|er; Feb 15th, 2002 at 10:16 PM.
    12/32/84 - I need some code to make me a sandwhich.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    my question here: (User can type here)
    instead of down here......
    Use Console.write, instead of Console.writeline.

    eg.

    Code:
    Console.Write("Obvious exits are: N S E W UP And Down: ")
    Changing the color of the text or the background involves a little bit more work. There might be some tutorials on MSDN.
    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