Procedure:
1. Open a folder.
2. Highlight a bunch of .avi files.
3. Press enter.

What I want to happen is for my Windows Forms app to load all of the files
in the same process, but each file is instead opened individually by
seperate processes. How can I get my desired behavior?

RE: How to get multiple selections to open in one window? by Mattehw

Mattehw
Mon May 23 12:11:16 CDT 2005

I make the same last week :-)
At first - use named Mutex class to ensure you have only one instance of
application. Then inherit NativeWindow class (and override WndProc method) as
listener for windows messages and finally use SendMessage windows method
(from user32.dll) to inform first running instance to open next file.
My implementation is on http://matej.us/develop/instancehelper.zip
--
thanks and sorry my english ;-)
Matthew


"James Park" wrote:

> Procedure:
> 1. Open a folder.
> 2. Highlight a bunch of .avi files.
> 3. Press enter.
>
> What I want to happen is for my Windows Forms app to load all of the files
> in the same process, but each file is instead opened individually by
> seperate processes. How can I get my desired behavior?
>
>
>