I am working on an application that needs to parse out data that has been
copied into the clipboard. My first questions are how can I detect if the
clipboard is empty, and how can I empty the clipboard? I tried the code
below, but it didn't seem to tell me if the clipboard was empty.
If Clipboard.GetDa taObject() Is Nothing Then
MessageBox.Show ("Clipboard is empty")
Else
Dim txtdata As IDataObject = Clipboard.GetDa taObject()
If (txtdata.GetDat aPresent(DataFo rmats.Text)) Then
MessageBox.Show (txtdata.GetDat a(DataFormats.T ext))
End If
End If
Also, the data that is being copied is basically a 8000 line document
containing data plots from an instrument in our labs. I need to grab
certain data from the third line. Any suggestions on how to do this?
Thanks.
Joshua