Hi, I am tryin' to disable ctrl_v and delete key in richtextbox. Anyone know how? Thank you.
Printable View
Hi, I am tryin' to disable ctrl_v and delete key in richtextbox. Anyone know how? Thank you.
RichTextBox1.Locked = True
you can scroll and highlight the text in the control, but you can't edit it. The program can still modify the text by changing the Text property.
Thank you for reply, but that is not what i wanted. I want to type in the richtextbox, but key del and ctrl&v will be disable. I managed to do ctrl&v w/ a timer, but I have no idea w/ the delete key. Please help.
Looking at the date of your question you have probably figured out your solution. I am not positive about the RichTextBox control, but with other constituent controls I can prevents certain keys from getting to them by setting the parent Form's KeyPreview property to True and then in the Form's KeyPress event write something like:
If KeyAscii = vbKeyDelete then KeyAscii = 0
I hope this helps :)