471,337 Members | 1,109 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How do I create a Shell IDList Array in C# 3.5?

I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.

The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.

Any help would be great.
Tom P.
Aug 11 '08 #1
2 3080
On 11/08/2008 in message
<dd**********************************@r66g2000hsg. googlegroups.comTom P.
wrote:
>I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.

The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.
I put something up on Code Project which may help:
http://www.codeproject.com/KB/files/JFileManager31.aspx

There is a class in it called cDropFiles which takes a file path (or array
of file paths) and converts it/them into a DataObject which you can put on
the ClipBoard.

--
Jeff Gaines Damerham Hampshire UK
If it's not broken, mess around with it until it is
Aug 11 '08 #2
On Aug 11, 5:07*pm, "Jeff Gaines" <jgaines_new...@yahoo.co.ukwrote:
On 11/08/2008 in message
<dd43a071-ba60-4cff-b25e-cccd54de9...@r66g2000hsg.googlegroups.comTom P..
wrote:
I am writing a file manager and I currently support simple, filename-
based, drag-drop. I'd like to create the appropriate Shell IDList
Array so that when a user drags a file into Paint or Photoshop or word
it will open correctly.
The research I've done points to "Shell IDList Array" but most of it
is determining how to accept and parse the CIDA, I'm looking for how
to build it and load the DataObject appropriatly.

I put something up on Code Project which may help:http://www.codeproject.com/KB/files/JFileManager31.aspx

There is a class in it called cDropFiles which takes a file path (or array
of file paths) and converts it/them into a DataObject which you can put on
the ClipBoard.

--
Jeff Gaines Damerham Hampshire UK
If it's not broken, mess around with it until it is
Thanks, that was a big help. Now the problem I have is the code you
wrote creates DataObjects as memoryStreams but when I drop a file from
FileManager it gives me an array of strings.

I'll work on it and see what I can come up with. Thanks for the nudge.

Tom P.
Aug 12 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Oliver Gräser | last post: by
11 posts views Thread by Paul D.Smith | last post: by
2 posts views Thread by James L Szatkowski, PE | last post: by
5 posts views Thread by bearophileHUGS | last post: by
3 posts views Thread by gisto moss | last post: by
reply views Thread by rosydwin | last post: by

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.