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

Copying file to Clipboard

P: n/a
I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:

Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName),
True)

where myFileName is a string and contains the full path name of the file.
When I retrieve a 'FileDrop' type data from the clipboard the object is an
array so I also tried:

Dim myFileData as String() = {myFileName}
Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData),
True)

but niether of these work. Can some please tell hoe I should do it.

Thanks
Fred
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi-
Google is your friend. :-)
http://groups.google.com/groups?thre...%40tkmsftngp12
(Watch for line wrap.)
Joe
--
************************************************** *********
Joe LeVasseur Jo*****@MVPs.org
"To none will we sell, to none deny or delay,
right or justice." Magna Carta (June 15, 1215)
************************************************** ********
PS- Please reply to the newsgroup- except in the
case of flames, insults, etc. (Don't bother.)
"fred" <So***@NoSpam.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:

Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName),
True)

where myFileName is a string and contains the full path name of the file.
When I retrieve a 'FileDrop' type data from the clipboard the object is an
array so I also tried:

Dim myFileData as String() = {myFileName}
Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData),
True)

but niether of these work. Can some please tell hoe I should do it.

Thanks
Fred

Nov 20 '05 #2

P: n/a
Hi-
Google is your friend. :-)
http://groups.google.com/groups?thre...%40tkmsftngp12
(Watch for line wrap.)
Joe
--
************************************************** *********
Joe LeVasseur Jo*****@MVPs.org
"To none will we sell, to none deny or delay,
right or justice." Magna Carta (June 15, 1215)
************************************************** ********
PS- Please reply to the newsgroup- except in the
case of flames, insults, etc. (Don't bother.)
"fred" <So***@NoSpam.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:

Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName),
True)

where myFileName is a string and contains the full path name of the file.
When I retrieve a 'FileDrop' type data from the clipboard the object is an
array so I also tried:

Dim myFileData as String() = {myFileName}
Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData),
True)

but niether of these work. Can some please tell hoe I should do it.

Thanks
Fred

Nov 20 '05 #3

P: n/a
Thanks Joe

"Joe LeVasseur" <Jo*****@MVPs.Org> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Hi-
Google is your friend. :-)
http://groups.google.com/groups?thre...%40tkmsftngp12
(Watch for line wrap.)
Joe
--
************************************************** *********
Joe LeVasseur Jo*****@MVPs.org
"To none will we sell, to none deny or delay,
right or justice." Magna Carta (June 15, 1215)
************************************************** ********
PS- Please reply to the newsgroup- except in the
case of flames, insults, etc. (Don't bother.)
"fred" <So***@NoSpam.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:

Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName), True)

where myFileName is a string and contains the full path name of the file. When I retrieve a 'FileDrop' type data from the clipboard the object is an array so I also tried:

Dim myFileData as String() = {myFileName}
Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData), True)

but niether of these work. Can some please tell hoe I should do it.

Thanks
Fred


Nov 20 '05 #4

P: n/a
Thanks Joe

"Joe LeVasseur" <Jo*****@MVPs.Org> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Hi-
Google is your friend. :-)
http://groups.google.com/groups?thre...%40tkmsftngp12
(Watch for line wrap.)
Joe
--
************************************************** *********
Joe LeVasseur Jo*****@MVPs.org
"To none will we sell, to none deny or delay,
right or justice." Magna Carta (June 15, 1215)
************************************************** ********
PS- Please reply to the newsgroup- except in the
case of flames, insults, etc. (Don't bother.)
"fred" <So***@NoSpam.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I am trying to copy a file onto the clipboard but I am not having any
success. Perhaps someone can help me out.
I have the full file name from my application and to put it onto the
clipboard I have tried:

Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileName), True)

where myFileName is a string and contains the full path name of the file. When I retrieve a 'FileDrop' type data from the clipboard the object is an array so I also tried:

Dim myFileData as String() = {myFileName}
Clipboard.SetDataObject(New DataObject(DataFormats.FileDrop, myFileData), True)

but niether of these work. Can some please tell hoe I should do it.

Thanks
Fred


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.