about console

F

FisherLiu

i want to make a console application.
it need let user input login id and password.
i use console.readline() method to read user input .
but the password will display in the screen.

how can i read user input password without display it on screen?

best regards!
 
T

Tom Shelton

i want to make a console application.
it need let user input login id and password.
i use console.readline() method to read user input .
but the password will display in the screen.

how can i read user input password without display it on screen?

best regards!

You need to use SetConsoleMode and turn off ENABLE_ECHO_INPUT...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top