473,394 Members | 1,971 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,394 software developers and data experts.

Read files selection from Clipboard

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

Similar topics

1
by: tabonni | last post by:
Hi all I want to create an ASP page, which can copy the real PDF files into the clipboard and then the user can paste it in Outlook message as attachments(it's like inserting attachments) My...
5
by: DraguVaso | last post by:
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in...
1
by: Petter L | last post by:
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...
3
by: siddhi | last post by:
Hi, I am very very new to vb6. I am trying to browse and read multiple microsoft word files. i am able to do for one file as follow, but not multiple files. Please I need help ASAP. Thanks Private...
0
by: garethrichardadams | last post by:
Hi, I've got this bit of code off the interweb and everyone and their dog says it should work. But it doesn't... For some reason the line wordDoc.ActiveWindow.Selection.Copy() doesn't copy...
3
by: Jay | last post by:
Hi, I need to read word document file in ASP.net and place it in a text box . How to do it ? i tried : Word.Application app = new Word.ApplicationClass(); object nullobj =...
3
by: Figmo | last post by:
I am writing a language translation app. It will run minimized to the tray. I want to setup a global hotkey that a user can hit that will capture whatever text is highlighted in the current...
0
by: satarupa | last post by:
I want to read the formatted (bold,underline,italics) text of a word dcoument using c# i can read the document even the paragraphn in it but not the formatted text plzz help following is the...
23
by: Dan Tallent | last post by:
A textbox has a attribute for ReadOnly. This seems like such a simple concept. When a textbox is set to read only the user cannot change the contents of the field. I have been trying to find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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...

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.