Hi , I need to enter a passsword to an InputBox but the char. need to be in password char. Please assist.
Thanks.Happy Hoildays
9 27475
It's not possible to do it in an input box.
Just create a your own input box for that password entry...
[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]
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.
[html]<input name="mypass" type="password" />[/html]
'PUT BELOW DECLARATIONS IN A .BAS MODULE - Option Explicit
-
-
Private Declare Function FindWindow Lib "user32" Alias _
-
"FindWindowA" (ByVal lpClassName As String, _
-
ByVal lpWindowName As String) As Long
-
-
Private Declare Function FindWindowEx Lib "user32" Alias _
-
"FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
-
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
-
-
Public Declare Function SetTimer& Lib "user32" _
-
(ByVal hwnd&, ByVal nIDEvent&, ByVal uElapse&, ByVal _
-
lpTimerFunc&)
-
-
Private Declare Function KillTimer& Lib "user32" _
-
(ByVal hwnd&, ByVal nIDEvent&)
-
-
Private Declare Function SendMessage Lib "user32" Alias _
-
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
-
ByVal wParam As Long, lParam As Any) As Long
-
-
Const EM_SETPASSWORDCHAR = &HCC
-
Public Const NV_INPUTBOX As Long = &H5000&
-
-
-
Public Sub TimerProc(ByVal hwnd&, ByVal uMsg&, _
-
ByVal idEvent&, ByVal dwTime&)
-
-
Dim EditHwnd As Long
-
-
-
EditHwnd = FindWindowEx(FindWindow("#32770", App.Title), _
-
0, "Edit", "")
-
-
Call SendMessage(EditHwnd, EM_SETPASSWORDCHAR, Asc("*"), 0)
-
KillTimer hwnd, idEvent
-
End Sub
-
-
-
-
-
-
-
-
`TO USE THE CODE WITHIN A FORM, USE THE MAGIC CODE
-
`SetTimer hwnd, NV_INPUTBOX, 10, AddressOf TimerProc
-
<example:>
SetTimer hwnd, NV_INPUTBOX, 10, AddressOf TimerProc
pass = InputBox("Enter Password")
REMEMBER TO ALWAYS PUT THE MAGIC CODE BEFORE CALLING THE INPUTBOX FUNCTION.
Thanks for that, niernier.
I haven't tried it out, but it looks like quite a neat solution to the problem.
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 . . .
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.
Hello,
Thanx niernier
I am also searching For It
Thanx For ur Posting
Faisal
'PUT BELOW DECLARATIONS IN A .BAS MODULE ...
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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
|
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'.
|
by: kumuda v |
last post by:
Hi all,
How to hide the charactes entered in the password field.
With regards
|
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?
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |