11-19-2014 02:01 PM
Hello,
How do I create a password entry dialog box, i.e. a dialog box that replaces the password with dots?
Thanks
<script src="http://www.ni.com/widgets/pnx/1.0/js/up-data.js"></script> Stephen
Solved! Go to Solution.
11-19-2014 02:03 PM
Use a string control with the display mode set to "Password"
11-19-2014 02:09 PM
Ok, how do I place it on a dialog box?
11-19-2014 02:10 PM
By using a String control instead?
11-19-2014 02:17 PM
I haven't been working with labview that long.
How do you make a string control into a dialog box that allows someone to inconspicuously enter their password?
11-19-2014 02:23 PM
Place a String Control on your Front Panel.
Right-click said string control.
Look at the options until you see "Password Display"
Click that.
Type into string control and see the pretty ******s
You'll want to get used to right-clicking to see what options you have available. Otherwise, you'll spend more time waiting for answers than you will actually developing. Don't be scared of the code. Odds are, you can't hurt it.
11-19-2014 02:27 PM
1. Place the Express VI 'Prompt User For Input' onto a BD
2. Configure the inputs as you want, ie. two text inputs 'User' and 'Password' and an OK and Cancel button.
3. Click OK to finish configuration
4. Right-click the Express VI and choose 'Show Front Panel'. Confirm that you want to convert to a SubVI
5. Right-click the password string control and set the display to 'password'
6. (optional) right-click the Express VI again on the diagram and choose 'View as Icon'
Now you have a subVI which will serve as a password dialog box.
11-19-2014 02:31 PM
I already noticed that and i was able to get the string control to work for password entry.
However, I want the user to enter the password into a dialog box.
How do I create the dialog box that has a string control in it?
11-19-2014 02:31 PM
I already noticed that and i was able to get the string control to work for password entry.
However, I want the user to enter the password into a dialog box.
How do I create the dialog box that has a string control in it?
11-19-2014 02:39 PM
If you want the password entry screen to have a certain appearance, you'll need to make your own VI with a string control & buttons and use this as the password checker. With most cases, if you aren't happy about the default appearance, make your own.
This can be implimented in a number of ways, such as a subvi within your main program which stays in a while loop until the correct password is provided OR the user hits cancel (close LabVIEW on cancel). The other way is to have the password checker as a stand-alone VI and launch the main VI via a reference call after the correct password is provided.