How can I override the copy/paste functions in a Richtextbox C# application.
Including ctrl-c/ctrl-v and right click copy/paste.
It’s WPF richtextBox.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To override the command functions:
And right-clicking is not supported in a Winforms RichTextBox
–EDIT–
Realized too late this was a WPF question. To do this in WPF you will need to attach a custom Copy and Paste handler: