ytram5

ytram5

  • NA
  • 135
  • 0

ConsoleKeyInfo and Console.ReadKey()?

Nov 23 2004 12:51 PM
I have seen a few examples using the ConsoleKeyInfo object and the ReadKey method for System.Console, but I cannot get it to work in my application. I get the standard type or namespace not found compilation error. I use the same using statements I saw in the examples I've looked at. An example where this object and method is used can be seen here: http://www.dotnetspider.com/technology/KBPages/22.aspx Essentially what I am doing is trying to get a username and password in a Console Application, and I want the password to be starred out like you can do in a Windows form. If someone knows another way to do this without using the above objects and methods, I would appreciate the help. Thanks!