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?
"Open With" passes the file name as an argument to the application.
Take a look at the args parameter here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With