RE: Programmatically set default program for file type

2013-08-21 Thread Ian Thomas
t-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Wednesday, August 21, 2013 5:29 PM To: ozDotNet Subject: Re: Programmatically set default program for file type Hi Ian, when I started using Vista I noticed the file association tab has vanished, so as a week

Re: Programmatically set default program for file type

2013-08-21 Thread Greg Keogh
Hi Ian, when I started using Vista I noticed the file association tab has vanished, so as a weekend exercise I wrote a WinForms app that lists and assigns associations by setting registry values and pulling icons out of PE resources with the API. I just had a look at the huge morass of code and I c

Programmatically set default program for file type

2013-08-21 Thread Ian Thomas
I would like to set the default program that runs a particular file type in code (in my application, to set VLC Media Player for .MP4 files). As far as I know there aren't .NET classes for file associations - so is it via registry keys that I do this? Prior to coding I have tested my Windows 7 de