Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleUse the Clipboard to copy and paste text
KeywordsClipboard, copy, paste, text
CategoriesControls, Tips and Tricks
 
Use the Clipboard object's Clear and SetText methods to save text to the clipboard. Use GetText to get the text in the clipboard and paste it in a TextBox.
 
Private Sub Command1_Click()
    Clipboard.Clear
    Clipboard.SetText Text1.Text
End Sub

Private Sub Command2_Click()
    Text1.Text = Clipboard.GetText
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated