Solved

disable the paste function

Posted on 2008-10-31
1
355 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Grabbing data from one access database and importing to another access database using python 4 135
java constructor error 8 131
mapAB Challlenge 35 159
firstChar challenge 13 121
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
This article will show, step by step, how to integrate R code into a R Sweave document
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

830 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