Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
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-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated