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
251 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 75

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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