Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I have created my own custom contextMenu for various reasons, however I need to determine if the clipboard contains any PDFXEdit elements. I have tried the following, but this is not working and I was wondering if you could give me a sample of how you currently do this?
Dim hasPDFData As Boolean = False
Try
Dim dataObject As PDFXEdit.IDataObject = TryCast(Clipboard.GetDataObject(), PDFXEdit.IDataObject)
Console.WriteLine("current PDF clip object: " & dataObject.ToString)
hasPDFData = True
Catch ex As Exception
Console.WriteLine("error getting clipboard data format: " & ex.Message)
End Try
If Clipboard.ContainsAudio = True Or Clipboard.ContainsImage = True Or Clipboard.ContainsText = True Or hasPDFData = True Then
Me.btnDropPaste.Enabled = True
Else
Me.btnDropPaste.Enabled = False
End If
Of course it's a C++ code, and it's how we are setting the clipboard format. Use Google/MSDN to find appropriate methods for .Net to read the clipboard format.