Solved

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

Posted on 2003-11-12
2
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

751 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