Results 1 to 6 of 6

Thread: Puting selected text to Clipboard

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101

    Placing the selected text on Clipboard

    how can you put the selected (highlighted) text in RichTextBox in the clipboard using vb code just like pressing Ctrl+C?

    - I'm using VB 6.0 Enterprise Edition

    [Edited by rod on 08-18-2000 at 10:19 AM]
    icq: 16228887

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Code:
    Clipboard.Clear
    Clipboard.SetText (RichTextBox1.SelText)
    Courgettes.

  3. #3
    Guest
    Code:
    Clipboard.SetText RichTextBox1.SelText, vbCFRTF

  4. #4
    Guest

    Wink

    Try this, the clipboard object should give you everything you need.


    RichTextBox1.Text = "Hello"
    Clipboard.SetText (RichTextBox1.Text)

  5. #5
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Cool Beat ya to it, Meggy

    Say hello to the fastest typing fingers in the West



    Courgettes.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    Thanks guys!!!! That was fast!!!!
    icq: 16228887

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