Note: This class is new in the .NET Framework version 2.0.
Uses a mask to distinguish between proper and improper user input.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Edit:
I suggested using the masked textbox for the passwords because you not only can use the password character property to hide user input , you can also utilize the masking property of the control to restrict and control user input...which is nice when you do not want non-alphanumeric characters to appear in the password![]()

