Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding "Open With..." Functionality c#

Tags:

c#

I am working on a program that can read, write, and export files, these functions all work fine and are almost perfected. What I would like to do now is to be able to choose a file and tell it to "Open With" (In the Right-Click Context Menu on Windows XP) and have my application be able to handle the file given. I have no idea on where to start or where to look so I thought I'd ask here. Thanks.

like image 300
MHD Avatar asked Sep 27 '10 14:09

MHD


1 Answers

You might take a look at this Windows KB article:

"How To Associate a File Extension with Your Application (Win32)" http://support.microsoft.com/kb/185453

It looks like it gives example code for how to do this in VBScript (?), but it looks like it goes through the Registry paths you need to look at.

like image 176
Guy Avatar answered Sep 18 '22 01:09

Guy