Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
176 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

715 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