473,383 Members | 1,859 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,383 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 1341
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.