I have written a word processor in C#. I would like to allow my program to open files when the user right clicks the file and selects "open with" and selects my program. How can I implement such a feature to my program? Currently, the only way the user can open a file is by using the OpenFileDialog.
As of now, if the user chooses to "Open with" and selects my program, it doesn't open up the file that they selected.
What is the best way to implement this feature?