I'm trying to test the format of the data in the clip board using this code, the error message follows:
If Clipboard.GetDataObject.GetData(DataFormats.Text) Then
Me.Editor.Paste()
Else
MsgBox("no text to paste")
End If
An unhandled exception of type 'System.InvalidCastException' occurred in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.