Greetings:
I developed a simple application for text encryption, i managed to register the new extension, my question is how to open this files from outside the program?(when you double click on them), i know that you need to pass some parameters to the main method but im not sure how,
If possible could you post a sample code or a snippet?.
Thanks in advance
ROGENATOR
1
Newbie Poster
Recommended Answers
Jump to Postadd "string[] args" to your Main method
will tell you like what the filepath to the file that was opened is, or if you open the program from command prompt it will tell you the parameters the user used.
and it would show the path of a file if …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.