VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Real mask you password

by Vitaliy Bykov (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This code mask symbol in TextBox. Nobody (unmask-programm) cant show you password. Four line of code protect you programm.

Rate Real mask you password

'Place at Form TextBox. 
'General Declarations
Dim pswd As String 
'
Private Sub Text1_KeyPress(KeyAscii As Integer) 
  pswd = pswd + Chr(KeyAscii) 
  KeyAscii = Asc("*") 
End Sub 
'You can replace string KeyAscii = Asc("*") to
'KeyAscii = 0 and TextBox is no symbols "*"

Download this snippet    Add to My Saved Code

Real mask you password Comments

No comments have been posted about Real mask you password. Why not be the first to post a comment about Real mask you password.

Post your comment

Subject:
Message:
0/1000 characters