Say, I have developed an application which opens a text file. it reads a text file and displays it to the user on a form and does various tasks.

Now, I want to open every txt file using my application whenever the user double clicks the file in the windows explorer.

pls guide.