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]
Printable View
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]
Code:Clipboard.Clear
Clipboard.SetText (RichTextBox1.SelText)
Code:Clipboard.SetText RichTextBox1.SelText, vbCFRTF
Try this, the clipboard object should give you everything you need.
RichTextBox1.Text = "Hello"
Clipboard.SetText (RichTextBox1.Text)
Say hello to the fastest typing fingers in the West
Thanks guys!!!! That was fast!!!!
:)