I have a MDI application. This MDI application has lots of other tools including an editor as well. I would like to open all the “.txt” files with the editor of my MDI application, thereby making my application as the default viewer of all the “.txt” files.
Whenever the user edits a “.txt” File the MDI application should launch and a editor window should be populated with the contents of the chosen “.txt” file .
Is there a way I can do that please.
Thanks
You need to change this reg key:
Change the default value to your program with %1 at the end for parameters. Then in your program handle the command line args to do what you want with it.