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 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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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: 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,...
| |