Solved

disable the paste function

Posted on 2008-10-31
1
330 Views
Last Modified: 2012-05-05
How can I disable the paste option in a text box the paste from the right click and the key board
0
Comment
Question by:cano63
1 Comment
 
LVL 15

Accepted Solution

by:
SRigney earned 125 total points
ID: 22852461
I'm not sure this is possible.   Paste is done with ctrl+v, shift+insert, and right click.   It may be possible to add code to the keydown event handler and prevent the two keyboard pastes.  

As to the right click I'm not sure.   You may be able to send a cancel if the right mouse button is selected in the mouse down event for the text box.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now