console hiding input characters

  • Thread starter Thread starter cmrchs
  • Start date Start date
C

cmrchs

Hi,

how do I prevent characters from being displayed in the Console when reading them using Console.ReadLine(), e.g. when entering a password.

This without using API-functions 'cause I want it to be a portable solution.

Is there a .NET-way to do it ?

thnx
Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Perhpas, this can help:
http://blogs.madtechnology.net/chris/archive/2003/12/11/306.aspx

Hi,

how do I prevent characters from being displayed in the Console when reading
them using Console.ReadLine(), e.g. when entering a password.

This without using API-functions 'cause I want it to be a portable solution.

Is there a .NET-way to do it ?

thnx
Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET
resources...
 
Back
Top