By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,401 Members | 1,381 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,401 IT Pros & Developers. It's quick & easy.

Hide chars in Inputbox

Slaxer13
100+
P: 106
Hi ppl.
Is there a way to hide chars when typing in an inputbox, for when i am typing a password for instance.

Appreciate any help, Cheers. Slaxer13
Jun 25 '14 #1

✓ answered by twinnyfo

Then, one could argue... don't use an input box. Create a tiny pop up form. This would give you some design options, too!

Share this Question
Share on Google+
7 Replies


twinnyfo
Expert Mod 2.5K+
P: 3,482
Slaxer13,

One way is to have a form-specific variable. Then on the OnKeyPress Event, for the Text Box (which would be unbound), evaluate the character pressed, and concatenate it to the variable. Then in the text box, display "*" according to the length of the string you are creating. You could also evaluate backspaces to delete the last character.

This should get you moving in the right direction.

Please post some of your work so we can help work through to a usable solution.
Jun 25 '14 #2

Slaxer13
100+
P: 106
The problem its that it is na Inputbox not a textbox, which would be a lot easier :/
Jun 25 '14 #3

Slaxer13
100+
P: 106
with a textbox i just have to set the passwordchar to "*" and all done. but an inputbox seems to be more troublesome.
Jun 25 '14 #4

twinnyfo
Expert Mod 2.5K+
P: 3,482
Then, one could argue... don't use an input box. Create a tiny pop up form. This would give you some design options, too!
Jun 25 '14 #5

Slaxer13
100+
P: 106
I used the inputbox because i thought it would be simple but it seems i have put my self in a highway to hell xD
I will creat the form instead of the inputbox.

Thx twinnyfo,
Cheers, Slaxer13
Jun 25 '14 #6

twinnyfo
Expert Mod 2.5K+
P: 3,482
Cheers! Let's hope all goes well with the rest of your design!
Jun 25 '14 #7

Slaxer13
100+
P: 106
Thats actually the last i need. The rest is all working great ;)
Jun 25 '14 #8

Post your reply

Sign in to post your reply or Sign up for a free account.