Code Library A repository of sample code

Go Back  Xtreme .NET Talk > Knowledge Base > Code Library > How to LaunchAdvancedAssociationUI for real!


Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2009, 03:17 AM
JumpyNET's Avatar
JumpyNET JumpyNET is offline
Centurion

Preferred language:
VB.NET
 
Join Date: Apr 2005
Posts: 194
JumpyNET is on a distinguished road
Thumbs up How to LaunchAdvancedAssociationUI for real!



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:
Code:
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/...ms-window.aspx
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Real Player woes! hog Graphics and Multimedia 2 09-01-2005 05:34 AM
Help, anybody? I have a real problem here! notlamc ASP.NET 13 05-05-2004 05:43 PM
Real Time C# sanira Random Thoughts 2 12-22-2003 11:21 AM
Real Newbie to DB phreaky Database / XML / Reporting 4 12-13-2002 04:18 AM

Advertisement:







Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe