• Advertisement
Sign in to follow this  

[.net] Opening a file in a running application window instead a new one...

This topic is 3642 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to be able to open a file in an application and then be able to open further files from the OS into that instance of the application. I can get the process that is running and make sure that only one instance runs, but am having trouble sending it the file to open. I am using WinForms, but can use the .net 3.5 stuff.

Share this post


Link to post
Share on other sites
Advertisement
There are several different ways to do this. One option is here, which leverages some things built for Visual Basic .NET that you can still access from other .NET languages. You can also try use WM_COPYDATA, named pipes or other IPC mechanisms.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement