I have a checkbox that when clicked changes
the PasswordChar property. My question is
how do i make it so when the checkbox is
unchecked it change the Password CharProperty
back to the original?
Can anyone help?
Printable View
I have a checkbox that when clicked changes
the PasswordChar property. My question is
how do i make it so when the checkbox is
unchecked it change the Password CharProperty
back to the original?
Can anyone help?
Try this:
Code:Private Sub Form_Load()
Text1.PasswordChar = "*"
End Sub
Private Sub Check1_Click()
If Text1.PasswordChar = "*" Then
Text1.PasswordChar = ""
ElseIf Text1.PasswordChar = "" Then
Text1.PasswordChar = "*"
End If
End Sub
One way is to store the original in the tag property of the checkbox. When it's unchecked set it back to the original by reading the tag property.
that worked, thanks