tomshelley
asked on
Mimed files should be opened in a running instance of the application if it exists.
I have an application that is mimed to two different file types. Currently when a user double-clicks a file it loads into a new instance of the application. What needs to happen is to have the file load into a new instance of the application only if it is not already running; and if the application is already running, it should be loaded in that existing instance and not open a new instance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/20790501/How-to-send-info-data-to-a-previous-instance-of-the-application.html
In general you need to find the old instance, send the new file name to it and quit the new instance. You have the needed classes/methods in the provided link.