Results 1 to 4 of 4

Thread: richtextbox questions...

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Location
    Fremont, Ca, 94538
    Posts
    40

    Post

    Hi, I am tryin' to disable ctrl_v and delete key in richtextbox. Anyone know how? Thank you.

  2. #2
    Member
    Join Date
    Jan 2000
    Posts
    35

    Post

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 1999
    Location
    Fremont, Ca, 94538
    Posts
    40

    Post

    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.

  4. #4
    New Member
    Join Date
    Feb 2000
    Posts
    1

    Post

    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
  •  



Click Here to Expand Forum to Full Width