473,406 Members | 2,549 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,406 software developers and data experts.

Password characters to an InputBox?

1
Hi , I need to enter a passsword to an InputBox but the char. need to be in password char. Please assist.

Thanks.Happy Hoildays
Jan 5 '07 #1
9 27475
It's not possible to do it in an input box.
Just create a your own input box for that password entry...
Jan 5 '07 #2
dwadish
129 100+
[quote]
the question is not clear.
what do you mean ? is it do you want to pass value through an inputbox. it is possible. get value from inputbox variable and check it with your value"password".
[/QOUTE]
Jan 5 '07 #3
Killer42
8,435 Expert 8TB
Hi , I need to enter a passsword to an InputBox but the char. need to be in password char. Please assist.
The InputBox function does not support the "password masking" feature. The textbox control does, by setting the PasswordChar property. If you need it to appear in a popup window like the InputBox, just place your textbox on a separate form and show that.
Jan 5 '07 #4
[html]<input name="mypass" type="password" />[/html]
Jan 6 '07 #5
'PUT BELOW DECLARATIONS IN A .BAS MODULE

Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2.  
  3. Private Declare Function FindWindow Lib "user32" Alias _
  4.    "FindWindowA" (ByVal lpClassName As String, _
  5.    ByVal lpWindowName As String) As Long
  6.  
  7. Private Declare Function FindWindowEx Lib "user32" Alias _
  8.   "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
  9.    ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
  10.  
  11. Public Declare Function SetTimer& Lib "user32" _
  12.   (ByVal hwnd&, ByVal nIDEvent&, ByVal uElapse&, ByVal _
  13.    lpTimerFunc&)
  14.  
  15. Private Declare Function KillTimer& Lib "user32" _
  16.   (ByVal hwnd&, ByVal nIDEvent&)
  17.  
  18. Private Declare Function SendMessage Lib "user32" Alias _
  19.     "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
  20.     ByVal wParam As Long, lParam As Any) As Long
  21.  
  22. Const EM_SETPASSWORDCHAR = &HCC
  23. Public Const NV_INPUTBOX As Long = &H5000&
  24.  
  25.  
  26. Public Sub TimerProc(ByVal hwnd&, ByVal uMsg&, _
  27.    ByVal idEvent&, ByVal dwTime&)
  28.  
  29.     Dim EditHwnd As Long
  30.  
  31.  
  32.     EditHwnd = FindWindowEx(FindWindow("#32770", App.Title), _
  33.        0, "Edit", "")
  34.  
  35.     Call SendMessage(EditHwnd, EM_SETPASSWORDCHAR, Asc("*"), 0)
  36.     KillTimer hwnd, idEvent
  37. End Sub
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. `TO USE THE CODE WITHIN A FORM, USE THE MAGIC CODE
  46. `SetTimer hwnd, NV_INPUTBOX, 10, AddressOf TimerProc
  47.  
<example:>
SetTimer hwnd, NV_INPUTBOX, 10, AddressOf TimerProc
pass = InputBox("Enter Password")


REMEMBER TO ALWAYS PUT THE MAGIC CODE BEFORE CALLING THE INPUTBOX FUNCTION.
Mar 6 '08 #6
Killer42
8,435 Expert 8TB
Thanks for that, niernier.

I haven't tried it out, but it looks like quite a neat solution to the problem.
Mar 7 '08 #7
It's been my problem before so i just want to share how it was solved. It's been a year though before I posted an answer to the question. I am new here, so that explains it. And thank you for adding code tags! haha i forgot the tags. Anyway, is there a forum here for the Assembly language?I have a question to ask also . . .
Mar 8 '08 #8
Killer42
8,435 Expert 8TB
It's been my problem before so i just want to share how it was solved. It's been a year though before I posted an answer to the question. I am new here, so that explains it. And thank you for adding code tags! haha i forgot the tags. Anyway, is there a forum here for the Assembly language?I have a question to ask also . . .
No, we don't have an Assembly forum. But you could try the Miscellaneous Questions forum, or the Software Development one.
Mar 8 '08 #9
mafaisal
142 100+
Hello,

Thanx niernier
I am also searching For It
Thanx For ur Posting

Faisal

'PUT BELOW DECLARATIONS IN A .BAS MODULE ...
Mar 8 '08 #10

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

Similar topics

1
by: znadeem | last post by:
Hi, I am new to JavaScript and I am trying to control New Password fields. These fields are not allowed to except any symbols, especially @ / \. The current code I've is not working at all. Could...
0
by: =?Utf-8?B?am1obWFpbmU=?= | last post by:
I'm trying to create a process that allows me to limit the non-alphanumeric characters generated with the PasswordRecovery control. Specially I want to suppress some characters for security...
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
0
by: xiang | last post by:
I wanted to mask password using inputbox but how come when i enter the code to mask the password in vbscript, its show me error on 'Object required'.
1
by: kumuda v | last post by:
Hi all, How to hide the charactes entered in the password field. With regards
11
by: jaz215 | last post by:
Hi. I want the user to input a password on an inputbox. How do I make this without showing the actual password? In textboxes you can set the view to all ********. How do I do this in inputboxes?
0
by: hindsy | last post by:
I'm writing a script for CLI on a windows server that needs the password characters hidden or masked from the user. I've found information on how to do it in a Unix Shell but not in a Windows MS-DOS...
0
by: Jonathan Boivin | last post by:
If I could give an advice on your method, in fact, what I would do.. is : Generate a password with your lower security set of characters. Then upper case randomizally some letters and finally...
1
by: JB | last post by:
Hi All, I'd like to display password characters in a DataGridView column, the same way I can do in a standard TextBox by using the PasswordChar property (i.e.typed characters replaced by a star...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.