Solved

Password font in InputBox

Posted on 2001-08-31
13
606 Views
Last Modified: 2013-12-02
Does anyone know how I can use a password font in InputBox so the user sees ********** ?
I don't want to use a dialog box or a custom form, just an InputBox.  A few lines of code changing the default font, or something, will be ok, but please don't go to the trouble of posting a complex solution - this is just a quick question.
If it can't be done, then the first reply wins, but be sure - you wouldn't want to be wrong :)
0
Comment
Question by:DavidWare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +2
13 Comments
 
LVL 8

Expert Comment

by:dovholuk
ID: 6445899
right click on the text box and choose properties. a new window will pop up. in the tab named "All" find "input mask". type in "Password"

you're box will now only show ******

dovholuk
0
 
LVL 2

Accepted Solution

by:
Gudare earned 25 total points
ID: 6445961
Davidware, I believe you're discussing the command in code similar to:

set strPassword = Inputbox("What is your password?")

and this is where you want to change it?

-Craig
0
 

Author Comment

by:DavidWare
ID: 6445967

Gudare & dovholuk,

Yes, InputBox in code.

set strPassword = Inputbox("What is your password?")

Sorry for not being clear.


0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 2

Expert Comment

by:Yoink
ID: 6446006
dovholuk is right on!
0
 
LVL 2

Expert Comment

by:Gudare
ID: 6446045
Only one problem with dovholuk's answer, Yoink, is that there is no text box to click on, because there is no form being used, unless dovholuk knows of a way to access the control I'm unfamiliar with.

It's an inputbox, a common control object from M$, and I believe is part of the standard VBA library in references.

Looking into alternatives for you now, David.

-Craig
0
 
LVL 8

Expert Comment

by:dovholuk
ID: 6446099
gudare is right on! :)

when i read the question i assumed (i know, i know) that i knew what was being asked... silly me, i should know better... lol

anyway, nope. there's no way to do it without using a customer form that i know of either.

there might be some elaborate API out there that'll monitor the keyboard and change EVERY character to *'s, but if there is, it's certainly not in my knowlege base.

cheers,

dovholuk
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6446100
i'd go for dovholuk's suggestion,

create your own form, adjust the mask, etc...

anyway, i'm certainly interested in the solution to change the mask of an inputbox.

my 2 cents, can't be done.
hope i stand corrected.

cheers
Ricky
0
 

Author Comment

by:DavidWare
ID: 6446238
Well, I didn't think so, but you guys are really great, so I thought I'd ask.
Gudare seems to have got the point first.  I hope someone knows of a way.
0
 
LVL 2

Expert Comment

by:Gudare
ID: 6446284
Hold on, hold on... Looking into methods to mess with the default font that the box will read to work with... It's almost a 99% chance that it's working with something in the default appearance settings and should be callable and settable via WinAPI calls. Messy, nasty, but effective....


*IF* I can find the bugger.

-Craig
0
 
LVL 2

Expert Comment

by:Gudare
ID: 6446355
Well....

I bow to mightier minds then I. I must assume it cannot be done due to lack of knowing which @*#&$@#*&$@ font it's using.

It's not using anything through appearance, but most folks Im sure knew that, just did a double check. A few methods I used to attempt to locate the actual font (I was going to pull a font-file switch and just trick the system) failed because I can't figure out which font file it's using.

I give, dovholuk and Paurths are correct. There is no feasible alternative. Use a custom, modal form.

G'luck.

-Craig
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6446389
Gudare,
there might exist a method to do it.
I was wishing u would found it, b/c it would have been interesting to know that.

cheers
Ricky
0
 
LVL 2

Expert Comment

by:Gudare
ID: 6446465
Ricky -

I'm sure there's a method, M$ had to put it in there in the first place! :)  And trust me, both of us, and my aching head from banging it on the desk, wishes I could have found it. *smirks*  Ah well, try again another day.

-Craig
0
 

Author Comment

by:DavidWare
ID: 6446502
Thanks, Craig. Sorry about the lump on your head.
And thanks to all who posted.
If I ever find it, I'll post it here.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question