VB console app input field

tesseract

Member
Joined
Jul 3, 2008
Messages
13
Programming Experience
3-5
i know it seems silly to make a console app but sometimes i just need to make quick tools for myself and don't want to bother with a GUI, so what i am trying to make is an app that will display data but accept input from a command line.

I have used the Console.In.ReadLine() but i want a command line like in mainframe and database programs, it usualy is marked with underscores and looks something like this:

VB.NET:
    UserName:_________
    PassWord:_________

just basic input fields, i dont know if there is a semi easy way to do this, im just looking for some tips on how to or if im even using the right language? probably not but i have the most experience in VB.
 

Tom

Well-known member
Joined
Aug 23, 2005
Messages
746
Programming Experience
5-10
ReadLine should accept input. Also you can call an inputbox to enter the data.

strInput = InputBox("Enter User Name")
Console.WriteLine("User Name : " & strInput)
 
Top Bottom