README.md

December 5, 2022 ยท View on GitHub

Stop hackers!

Description

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)

More Info

Before using this code, you should first have a textbox on your form.

Stops hackers

Submitted On
ByComputer Controller
LevelBeginner
User Rating2.5 (27 globes from 11 users)
CompatibilityVB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryComplete Applications
WorldVisual Basic
Archive File

API Declarations

' No API's

Source Code

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!