Results 1 to 3 of 3

Thread: Selected Text

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    Okay, I have a rich text box and I've built a function based around selected text on a double click... the code works, but how do I prevent the default selecting code in the text box to NOT take over after the double click event? I'm sure it's API... little help?

  2. #2
    Guest
    Try this:


    Code:
    Private Sub RichTextBox1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
        RichTextBox1.SelLength = 0
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    not quite, see I want to maintian the selection my code gives, but after that the natural selection of the double click event takes over... I know I can easily change it back but you still see the flash of selected text accross the screen, that's what I'm trying to avoid.

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