Solved

disable the paste function

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How does a lexer and parser works 2 84
pre4 challenge 19 94
Not needed 13 95
Adjust the position 3 50
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…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

863 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

25 Experts available now in Live!

Get 1:1 Help Now