It is simple to mask the characters entered in a textbox by setting the PasswordChar Property
The same can be done using C# code as shown below:
TextBox2.PasswordChar = "*"
Text Box without Mask
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
It is simple to mask the characters entered in a textbox by setting the PasswordChar Property
The same can be done using C# code as shown below:
TextBox2.PasswordChar = "*"
Nice tip. I'll have to try it out. Will help to improve security on some apps I would think. Thanks!
ReplyDeleteIt is rather interesting for me to read the post. Thanks for it. I like such themes and everything that is connected to them. I would like to read a bit more soon.
ReplyDeletegreat. plz mail me soe more tips on email validaion in windowsform applications in C#
ReplyDeleteSet 'UseSystemPasswordChar' on True. Then you got the nice dots and not the stars
ReplyDeletegood job
ReplyDeletethanks alot, that what i need
ReplyDeleteIt's not very secure, the password is still visible if you scan the program with Spy++.
ReplyDeletehow to do that in ASP.NET ? In ASP.NET there is no PasswordChar properties for textbox.
ReplyDelete