How do programs handle file "opened with..." them?

Posted by hmind on Stack Overflow See other posts from Stack Overflow or by hmind
Published on 2010-04-13T21:38:08Z Indexed on 2010/04/13 21:43 UTC
Read the original article Hit count: 107

Filed under:
|
|

I am wondering if someone could point me in the right direction. You know how for example, in most IDEs, if you open a source file with "open with", it runs the program and opens it up? and then if you open another one, it opens it in a new tab in the same process?

My question is NOT how to add a program to the shell commands, but rather:

  1. How would a C# application "receive" a PDF file for example?

  2. How would the application open the file in the same process when another file is run with it (not having to instances of the program)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows