|
-
Jan 31st, 2000, 02:55 PM
#1
Thread Starter
Member
Hi, I am tryin' to disable ctrl_v and delete key in richtextbox. Anyone know how? Thank you.
-
Jan 31st, 2000, 03:14 PM
#2
Member
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.
-
Feb 1st, 2000, 01:19 AM
#3
Thread Starter
Member
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.
-
Feb 20th, 2000, 05:46 AM
#4
New Member
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 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|