How does one use the ClipBoard object.
In VB6 we have getText and setText.
Here how should GetObject and setObject be used?
Help me with an eg?
Printable View
How does one use the ClipBoard object.
In VB6 we have getText and setText.
Here how should GetObject and setObject be used?
Help me with an eg?
Place data on clipboard:
If textBox1.SelectedText <> "" Then
Clipboard.SetDataObject(textBox1.SelectedText, True)
End If
Get data from clipboard:
MsgBox(Clipboard.GetDataObject.GetData _
("System.String").ToString())
You need to add data type validation !!!