LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict the copy & paste in string control?

 
In my application user name & password string controls are there.After typing the username in string control it is copied and paste it in password string control .
 
I like to restrict the string copy from one string control  & paste it into another string control ?
How to do this?
 
 
Kumar.
0 Kudos
Message 1 of 16
(5,335 Views)
OK, I've got to ask: why in the world would you want to do this? As a user, if I was using an application that did this, I'd find the developer and hit them. Why? Because you're violating basic user interface principles.
Message 2 of 16
(5,312 Views)
Hi Kumar,

One easy way to copy data from one control to another is to use a local variable.  Simply right click Password and click create>>local variable.  Wire that local variable to the Username.


Regards,

Nadim R
Applications Engineering
National Instruments
0 Kudos
Message 3 of 16
(5,285 Views)
Yes, but I was questioning the poster's apparent need to restricting being able to copy and paste from one string control to another. I was very curious as to why he believes this is a necessary user interface "feature".
0 Kudos
Message 4 of 16
(5,275 Views)

These images illustrate anoth approach to inhibit the copying of text which is available in LV 8.2 (maybe 8.0)

Ben

Message Edited by Ben on 12-07-2006 10:12 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
Message 5 of 16
(5,275 Views)
@ smercurio_fc

This is a perfectly viable UI "change".  You'll find in most secure applications/websites that you are not allowed to paste into a password box.  Try it next time you log into Windows (assuming you use it).
Message 6 of 16
(5,255 Views)
Well in windows you can post into the password box.

We used this once, on a system that was in the field, we found that the new user had a password duration off 14 days....
On site we only had a USB-mouse to connect. When the system booted, it prompted for a new password (the original password was saved using for auto-logon), the only thing we could do was copy and paste.
It saved my ass.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 7 of 16
(5,215 Views)
I don't understand the original question. You want to deny the ability to paste something into the password field?

I don't see the security of this. I hope you are not automatically writing the password into the password field once the user writes the username. You do want to make sure the password field is erased once you hit OK.
www.vartortech.com
0 Kudos
Message 8 of 16
(5,209 Views)
What you could do is wait on a key down /mouse down event (first key OR paste), note the timestamp, and wait on the value change event (or the OK button). If this is to soon after each other (> 10 chars/second) you could flush the input.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 9 of 16
(5,192 Views)
...or you could wait for the "Mouse enter" event of the password control and then clear the clipboard. or you compare the password with the clipboard contents and deny logon if they are identical.  there are VIs for clipboard handling with LV8.x.
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 10 of 16
(5,175 Views)