Description: Ever wanted to programmatically associate a file type on the system with your application, but didn t like the idea of digging through the registry yourself? If so, then this article and code are right for you.
To Search:
File list (Check if you may need any files):
File Association
................\File Association.sln
................\FileAssociation
................\...............\AssociationManager.cs
................\...............\FileAssociation.csproj
................\...............\FileAssociationInfo.cs
................\...............\ProgramAssociationInfo.cs
................\...............\ProgramIcon.cs
................\...............\ProgramVerb.cs
................\...............\Properties
................\...............\..........\AssemblyInfo.cs
................\...............\RegistryException.cs
................\...............\RegistryWrapper.cs
................\...............\ShellNotification.cs
................\FileAssociationExample
................\......................\AddOpenWithDialog.cs
................\......................\AddOpenWithDialog.Designer.cs
................\......................\AddOpenWithDialog.resx
................\......................\AddVerbDialog.cs
................\......................\AddVerbDialog.Designer.cs
................\......................\AddVerbDialog.resx
................\......................\AssociationGUIForm.cs
................\......................\AssociationGUIForm.Designer.cs
................\......................\AssociationGUIForm.resx
................\......................\FileAssociationExample.csproj
................\......................\NewExtensionDialog.cs
................\......................\NewExtensionDialog.Designer.cs
................\......................\NewExtensionDialog.resx
................\......................\NewProgramAssociationDialog.cs
................\......................\NewProgramAssociationDialog.Designer.cs
................\......................\NewProgramAssociationDialog.resx
................\......................\Program.cs
................\......................\Properties
................\......................\..........\AssemblyInfo.cs
................\......................\..........\Resources.Designer.cs
................\......................\..........\Resources.resx
................\......................\..........\Settings.Designer.cs
................\......................\..........\Settings.settings