LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict the copy & paste in string control?

It appears I was not clear with my hint.

The copy and paste can be shutdown on an individual control.

Just delete the copy option from the short-cut for the password Control.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 16
(2,194 Views)

Hi Ben,

            I am using Labview 7.1 .Any other method to do this in Labview 7.1?

                                  Thank u for ur post.

-Kumar.

0 Kudos
Message 12 of 16
(2,184 Views)

Don't want to upgrade eh?

Well what about this.

When ever a short cut is invoked (ctrl-c for example) the event fires and then I check if the password string control has key focus. If so, I discard the event.

Ben

Message Edited by Ben on 12-11-2006 07:06 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
Message 13 of 16
(2,171 Views)
Thanks  Ben !
 
It is working well in my application.
 
-Kumar.
0 Kudos
Message 14 of 16
(2,130 Views)
Just an FYI, this does not prevent the (SHIFT+INSERT) paste.  Some of those savvy linux users may be able to bypass the above VI.  This can be prevented by using the combination of the Key Down? and Key Repeat? events for VKey = Insert and PlatMods.Shift
CLA, CTA
0 Kudos
Message 15 of 16
(1,892 Views)


Will.D wrote:
@ 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).



I think you only have come closer to the point. Smiley Wink
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 16 of 16
(1,872 Views)