473,236 Members | 1,581 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,236 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 3204
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: eichin | last post by:
One of my recent projects has involved taking an accretion of sh and perl scripts and "doing them right" - making them modular, improving the error reporting, making it easier to add even more...
7
by: Oliver Gräser | last post by:
Hej, I want to run batchfiles via the Shell, but accessible in the Browser via IIS. Actually, I'd like the server to start a command line ntbackup if a users selects to do so on an ASP in his...
22
by: nobody | last post by:
hello everybody, is there a way of creating an array with help of a function that would accept the name of this array as a parameter and then create global Array type variable of that name? so...
11
by: Paul D.Smith | last post by:
Can Python create a variable "on-the-fly". For example I would like something like... make_variable('OSCAR', 'the grouch'); print OSCAR; ....to output... the grouch
3
by: JP | last post by:
I have an app that represents ShellFolder Items as a visual element (listview item, etc). The code correctly performs Drag&Drop operations EXCEPT in the case when the item being dragged is from a...
0
by: Andrea | last post by:
My C# application is a drop target for the drop format Shell IDList Array I have some problems actually getting the data. I was using the same code used for the FileDrop data target but I'm...
2
by: James L Szatkowski, PE | last post by:
I'm using (successfully in VB Express) this routine: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Call Shell("C:\Program...
5
by: bearophileHUGS | last post by:
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: But it seems such capability isn't shared with the append: ...
3
by: gisto moss | last post by:
i have to implement the shell such that it accepts commands, together with parameters. Assume all possible commands have either 0 or 1 parameter. I need to check this. if(commandstrings.length>2)...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.