Results 1 to 2 of 2

Thread: Backspace in RTF?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    23

    Post

    I would like to know how to perform a backspace in my program using visual basic 6. For example, if the user keyed in a "~", I would perform a backspace to remove this particular character.

    Please note that I had try to use LEFT, MID and some other function that can achieve this taskl, but however, previous characters will all change to only one colour.

    Sincerely asking for help

    Thank you.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    When using a RichTextBox there are 2 copies of the Text, there is a straight Text Version and a Formated RTF copy, when performing operations on Characters within the Text, make sure you're using the .Text Property, otherwise it'll use the RichText Formatted Copy by Default and You'll be manipulating the Formatting characters along with the Text giving the Unexpected results you are experiencing.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

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