Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

http://davesbox.com/archive/2008/12/03/programmatically-opening-the-default-programs-window.aspx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...