473,395 Members | 1,702 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 4498
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.