Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Password font in InputBox

Posted on 2001-08-31
13
Medium Priority
?
615 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
  • 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 100 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

877 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