password help!!  
Author Message
schmack





PostPosted: Visual C# General, password help!! Top

When I'm inserting the pass word how can I erase a character that I inserted by mistake, the last one or all of then (one-by-one) using 'backspace'

I know how to remove the last character but the * stay the same!

Ex:

 *****   >>abcde

After removing the last character it stays the same!

 *****   >>abcd




Visual C#7  
 
 
SvenC





PostPosted: Visual C# General, password help!! Top

Hi Schmack,

add this when you want to delete the last *

Console.CursorLeft = Console.CursorLeft - 1;
Console.Write(" ");
Console.CursorLeft = Console.CursorLeft - 1;

--
SvenC