473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hide chars in Inputbox

Slaxer13
106 64KB
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!

7 3488
twinnyfo
3,653 Expert Mod 2GB
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
106 64KB
The problem its that it is na Inputbox not a textbox, which would be a lot easier :/
Jun 25 '14 #3
Slaxer13
106 64KB
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
3,653 Expert Mod 2GB
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
106 64KB
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
3,653 Expert Mod 2GB
Cheers! Let's hope all goes well with the rest of your design!
Jun 25 '14 #7
Slaxer13
106 64KB
Thats actually the last i need. The rest is all working great ;)
Jun 25 '14 #8

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

Similar topics

3
by: Susan Bricker | last post by:
I would like to have a transparent command button on my Main Menu to cause an Inputbox( ) to be displayed for the user to enter a password. This is to control the enabling of Bypass Key (shift). ...
1
by: Hans Kamp | last post by:
How do I use InputBox? private void addButton_Click(object sender, System.EventArgs e) { string newName; newName = InputBox("t1", "t2", "t3"); namesListBox.Items.Add(newName); }
1
by: | last post by:
When trying to use the InputBox function I get the error "InputBox is a namespace and therefore is not a valid expression". Can anyone tell me what the problem is? Thanks.
2
by: ImageAnalyst | last post by:
Tom, Nikolay: That code doesn't work, at least not in VS2005. What happens is that when you replace with VBNullChar, it basically chops off the string from that point onwards. So Sna?*|fu" would...
8
by: jpoquette | last post by:
I have recently upgraded a Visual Basic 2003 win forms application to 2005. After doing so I can no longer get my project to compile. The code is bombing on any line that uses an InputBox. I'm...
3
by: LMzizi | last post by:
Pword = InputBox("Enter password","Login Screen","***") I m trying to hide my password in InputBox but the above coding does't help ,Could someone help me please ? Thanks in advance
13
by: Hongyu | last post by:
Hi, I have a datetime char string returned from ctime_r, and it is in the format like ""Wed Jun 30 21:49:08 1993\n\0", which has 26 chars including the last terminate char '\0', and i would...
7
by: Intos | last post by:
Hi. How to change the text of inputbox if i have already set the style for something else? In other words: <input name="fItem" type="text" id="fItem" style="border:hidden" size="80"...
0
by: atencorps | last post by:
Hello I have the following code but need some help on it. The idea of the code is the main sections ie Service Management are viewable when the page is loaded and by clicking on the main...
2
by: erikaslt66 | last post by:
Hello, I found hard to make my program to display the data that was stored by inputbox with listbox. To explain it better here is my code: Public Class Form1 Structure Userinfo Dim...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.