Results 1 to 3 of 3

Thread: Copy text to clipboard by finding start and stop positions in code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Location
    Atlanta, GA
    Posts
    177

    Thumbs up Copy text to clipboard by finding start and stop positions in code

    Hello,

    Does anyone know how to copy text from a rich text box by setting the the start and stop position in the code and transfering the selected text to the clipboard?
    212 will lead you to the truth

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Code:
        RichTextBox1.SelStart = 2
        RichTextBox1.SelLength = 3
        Clipboard.SetText RichTextBox1.SelText
    There ya go
    -Excalibur

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Location
    Atlanta, GA
    Posts
    177
    Thanks!
    212 will lead you to the truth

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