Skip to content

Open files with program

p

Asked Apr 16, 2007, 9:37 AM EDT1 answer
Share
LinkedInX

I've written a c#.net program to edit my own kind of files. Now I want to open files with my program: When you click, in explorer, on files with my extension, my program starts and you can edit the document.

p

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    you'll need to associate your file extension with the operating system. You can do this with the file explorer.  Once you do this, it should call your application with the name of the file.  You can at this point extract the filename from the arguements and open your file using your application.
    0