Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

disable the paste function

Posted on 2008-10-31
1
Medium Priority
?
372 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 500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

926 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