473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Copying file to Clipboard

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
4 4499
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gey-Hong Gweon | last post by:
Is there a way to copy a PIL image to windows clipboard (as a dib image or a bitmap, I suppose)? What I would like to accomplish is to do a fast copy and paste of images from my python...
0
by: Ata | last post by:
Hello, I am trying to copy the contents of the output of SQL Reporting Services to a PowerPoint slide. For this, I am using SQL Reporting Services to obtain an IMAGE stream, which I paste to the...
16
by: DataBard007 | last post by:
I have an Access97 application whose form contains many text boxes. What do I have to do in order to copy the contents of one of these text boxes to the clipboard? I want to do this so I can then...
8
by: John Smith | last post by:
Hi folks, I know how to place text into the user's clipboard: Clipboard.SetDataObject("My Copied Text"); but how do I place a file in there? So, if I have a file C:\test.txt, how can I place...
9
by: Christian Blackburn | last post by:
Hi Gang, I don't know what to make of all of this, but I'm having nothing, but trouble copying data to the clipboard which should be the easiest thing in the world. The only systems I can get...
0
by: fred | last post by:
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...
4
by: gordon | last post by:
Hi I hav e a smallish app that has a datagridview. A user can select some columns in the datagrid, and i have a button that i would like to use to copy the rows that are selected to the...
19
by: Jeff | last post by:
....working with visualweb.net 2005 and vb. ....trying to simply copy the contents from a textbox to the clipboard. I've looked at a large number of places on line and they give me various...
0
by: MathewJose | last post by:
Hi, I have a DatagridView in windows form.It has got a column which has some names that are populated from master table in database.Now i need to copy a set of data against these names. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.