Solved

Mimed files should be opened in a running instance of the application if it exists.

Posted on 2003-11-12
2
171 Views
Last Modified: 2010-04-16
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.
0
Comment
Question by:tomshelley
  • 2
2 Comments
 
LVL 20

Expert Comment

by:TheAvenger
ID: 9737908
Here is a solution I answered previously with a very similar problem:

http://www.experts-exchange.com/Programming/Q_20790501.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.
0
 
LVL 20

Accepted Solution

by:
TheAvenger earned 250 total points
ID: 9738809
The discussion from the above link was even more expanded and finalized in details in this thread:

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20796312.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Service to Receive TCP Packets 4 120
XML & .net 5 40
Definitions and default visual studio colors 5 58
Host asp.net pages 5 25
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now