Page 1 of 1

Textbox and checkbox

Posted: Sun Jul 22, 2012 2:09 am
by pip
Hi i need help with a problem i forgot the coding on how to use the checkbox to show charecters of password in a textbox what i am trying to do is make if checkbox1.checked then it will show password charecters, and if not checked it shows the astriks!
Thanks if you can rejog my short term memory nerner; !!

Re: Textbox and checkbox

Posted: Sun Jul 22, 2012 2:26 am
by Skillful
Code: Select all
If CheckBox1.Checked = True Then
TextBox1.UseSystemPasswordChar = True
Else
TextBox1.UseSystemPasswordChar = False
End If
Simple :) !

Re: Textbox and checkbox

Posted: Sun Jul 22, 2012 2:27 am
by pip
Skillful wrote:
Code: Select all
If CheckBox1.Checked = True Then
TextBox1.UseSystemPasswordChar = True
Else
TextBox1.UseSystemPasswordChar = False
End If
Simple :) !
You made it seem easier lol i been overthinking thanks!
guess i am just tired :/