What's new
Visual Studio.Net Help Community

A community to get Microsoft Visual Studio.Net programming help.

Visual Studio.Net Help Community is a community for .Net programmers to interact with people who want to learn to program using the Microsoft Visual Studio.Net languages or who program using the Microsoft .Net languages and want to share their .Net knowledge.

Visual Studio.Net Help Community is a free programmer help site so why not join the community today? Once you are a member you get access to all our .Net programming discussions.

How to LaunchAdvancedAssociationUI for real!

Apr 4, 2005
Windows Vista comes with a new feature called Default Programs (which replaces the Set Program Access and Default and File Types feature from Windows XP). This feature provides a way of changing program defaults, such as file and protocol associations and AutoPlay settings.

To save us most of the trouble, David Kean has gone ahead and written a small wrapper around the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method, which displays the file association window for a particular application.

The usage of this method is simple:
System.Windows.DefaultApplications.ShowAssociationsWindow("Internet Explorer")
Here is a link for the source code and a pre compiled dll:

Top Bottom