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

add "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 you dragged it onto your program

static void Main(string[] args) 
		{
		
			Application.Run(new Form1());

		}

Greeting:
Thanks, that was what i was missing

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.