Solved

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

Posted on 2013-01-13
1
247 Views
Last Modified: 2013-01-16
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
0
Comment
Question by:Rog
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 38772971
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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now