In vb6 you could use Clipboard.GetText to get the text on the clipboard, but in .NET, this is how I had to do it:
VB Code:
Dim A As Windows.Forms.IDataObject, S() As String, S2 As String A = Clipboard.GetDataObject() S = A.GetFormats() S2 = A.GetData(S(0))
Where S2 contains the text that was on the clipboard.
Is there an easier way to get the text? And to see if theres text, or an image or w/e other kind of data?




Reply With Quote