|
|
Title | Use the Clipboard to copy and paste text |
Keywords | Clipboard, copy, paste, text |
Categories | Controls, 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
|
|
|
|
|
|