Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-12
2
Medium Priority
?
177 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses

927 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