by Computer Controller (5 Submissions)
Category: Complete Applications
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(11 Votes)

Do you really hate when you make a textbox for a password, but some hacker comes and turns the *'s into regular words? Well then this is for you. My simple code will stop a hacker from doing that. (Very easy. No API's. Commented)
Assumes
Before using this code, you should first have a textbox on your form.
Code Returns
Stops hackers
API Declarations' No API's
Dim TimeToEnd As Boolean
Private Sub Form_Load()
Form1.Show
Do ' Loop while form is on
DoEvents
If Text1.PasswordChar <> "*" Then Text1.PasswordChar = "*"
EndIf 'If the password is not in stars, then make it.
Loop Until TimeToEnd
End Sub
Private Sub Form_Unload(Cancel As Integer)
TimeToEnd = True
End Sub
' That's all!