How to creating a file association

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

I want to create a unique file extension for my data file (e.g. test.ada)
where the "ada" is my extension and assign an icon to the extension just
like MS Word does with the ".doc" file. I want when the application starts
up it checks for the extension , if it is not registered it is then
registered, how do you do this in .net?
 
The registry holds the relevant data for associating programs with file
extensions. You can see how this is done by for example searching in
your registry for ".sln" or ".csproj". You can write the same kind of
thing to the registry, to associate your program with your custom
extension.
 
Back
Top