LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

password entry dialog box

Solved!
Go to solution

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

0 Kudos
Message 1 of 11
(10,180 Views)

Use a string control with the display mode set to "Password"



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 11
(10,177 Views)

Ok, how do I place it on a dialog box?

0 Kudos
Message 3 of 11
(10,170 Views)

By using a String control instead?

0 Kudos
Message 4 of 11
(10,167 Views)

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?

0 Kudos
Message 5 of 11
(10,163 Views)

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.

0 Kudos
Message 6 of 11
(10,145 Views)
Solution
Accepted by topic author shall123

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.

Message 7 of 11
(10,139 Views)

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?

0 Kudos
Message 8 of 11
(10,135 Views)

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?

0 Kudos
Message 9 of 11
(10,135 Views)

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.

0 Kudos
Message 10 of 11
(10,125 Views)