|
-
Aug 18th, 2000, 09:17 AM
#1
Thread Starter
Lively Member
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]
-
Aug 18th, 2000, 09:26 AM
#2
Fanatic Member
Code:
Clipboard.Clear
Clipboard.SetText (RichTextBox1.SelText)
-
Aug 18th, 2000, 09:26 AM
#3
Code:
Clipboard.SetText RichTextBox1.SelText, vbCFRTF
-
Aug 18th, 2000, 09:27 AM
#4
Try this, the clipboard object should give you everything you need.
RichTextBox1.Text = "Hello"
Clipboard.SetText (RichTextBox1.Text)
-
Aug 18th, 2000, 09:28 AM
#5
Fanatic Member
Beat ya to it, Meggy
Say hello to the fastest typing fingers in the West
-
Aug 18th, 2000, 09:34 AM
#6
Thread Starter
Lively Member
Thanks guys!!!! That was fast!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|