VB.net How to know what type of data is on the Clopboard (Excel, Word, CSV Text etc)

How do I tell in VB.net what type of data is on the clipboard.

I want to know if text is Excel or Text (CSV) or Word, or Picture etc?

Thanks,

Rog
LVL 8
Rog DManager Inforamtion SystemsAsked:
Who is Participating?
 
käµfm³d 👽Connect With a Mentor Commented:
You can use the ContainsXXX methods of the static Clipboard class.

Screenshot
Note that the ContainsData method is a bit more involved, and it will let you interrogate at a slightly more granular level:

Screenshot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.