By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,581 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

Read files selection from Clipboard

P: n/a
I have been searching for how to read a fileselection from clipboard and
into the program. The code i have is currently just trying to read and put
it out in a messagebox.
The error is that the getdatapresent gives false. I got a readout in some
example code that says that it is was unicodetext but even that failed.
What i did to test is: selected three files and copy. then started the
example program but it failed on the type of format.
What type of format is a file selection? and how do i read it

Petter L
Nov 8 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Use DataFormats.FileDrop. The return value of the GetData method is an array
of strings representing the file paths.

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------
"Petter L" <petter at ho**@hotmail.com> wrote in message
news:OD**************@TK2MSFTNGP15.phx.gbl...
I have been searching for how to read a fileselection from clipboard and
into the program. The code i have is currently just trying to read and put
it out in a messagebox.
The error is that the getdatapresent gives false. I got a readout in some
example code that says that it is was unicodetext but even that failed.
What i did to test is: selected three files and copy. then started the
example program but it failed on the type of format.
What type of format is a file selection? and how do i read it

Petter L

Nov 10 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.