about console

  • Thread starter Thread starter FisherLiu
  • Start date Start date
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!
 
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...
 
Back
Top