How to open files from explorer into different tabs.

Posted by Priyank Bolia on Stack Overflow See other posts from Stack Overflow or by Priyank Bolia
Published on 2009-02-03T09:34:37Z Indexed on 2011/03/07 8:10 UTC
Read the original article Hit count: 187

Filed under:
|
|

How to open files from explorer into different tabs. I can associate an open with menu with the file type, now when I already have the program working, how to open the new file into another tab, instead of new program. How to find the already running process exactly, not with the name and send the filename to it.

Let me make myself clear: I want my app to be single instance, so that when user select 10 text files and press enter key, my application will open all the 10 text files into 10 tabs, instead of creating 10 processes. How to do that? How to communicate between various instances of the same process.

EDIT SOLVED: Implemented the functionality using WM_COPYDATA in C# and the SingleApplication class from codeproject.

© Stack Overflow or respective owner

Related posts about c#

Related posts about shell