I've written a program in C# that creates and opens files in a proprietary file format. I created the installer using InstallShield Express. The files are created and show up with the appropriate file icon that I have assigned to them.
The files that my program opens and creates open just fine when I run the program and then open the files. But when I go to the directory where the files are located and double-click on them, the program they're associated with starts running, but the files won't open in that program automatically.
When you open a ".doc" file, for example, Microsoft Word starts and the .doc file opens. This is what I want to happen. Am I missing something?
If you double click the file to launch the associated program, you can get the file path from the arguments passed to the
Mainmethod.And you have code to open a file after it is created, right?
Then what you need to do is to call that piece of code from your
Mainmethod.