open program once with multiple files as arguments from explorer

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-04-24T09:06:38Z Indexed on 2010/04/24 9:13 UTC
Read the original article Hit count: 148

I have a program that works when, a file is opened with it using the right click menu in explorer. But if I select multiple files and then right click and open with my program then it opens multiple instances of my program, instead of just passing the multiple files as arguments to a single instance. The program is written in vb.net but is not a windows form, it is just a module, so I can to tick the Single instance option in the properties in Visual Studio.

So how do I open multiple files from explorer context menu in a single instance.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about .NET