console hiding input characters

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...
 
S

Shiva

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...
 

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