problem changing default icon for associated file type

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

xenogen

Thread Starter
Joined
Jan 12, 2008
Messages
50
the code im using seems to be working abolutely perfectly, except for 1 small problem, the actual icon isnt changing, ive checked the registry, and the keys are their but the icon isnt changing.. heres all the code in my program associated with the registry..

If My.Computer.Registry.ClassesRoot.GetValue(".PRG") = Nothing Then
My.Computer.Registry.ClassesRoot.CreateSubKey(".PRG").SetValue("", "Pyroguide", Microsoft.Win32.RegistryValueKind.String)
My.Computer.Registry.ClassesRoot.CreateSubKey("Pyroguide\shell\open\command").SetValue("", Application.ExecutablePath & _
" ""%l"" ", Microsoft.Win32.RegistryValueKind.String)

My.Computer.Registry.ClassesRoot.CreateSubKey("Pyroguide\DefaultIcon").SetValue("", My.Computer.FileSystem.SpecialDirectories.MyDocuments & "PyroGuide\Pyroguide.ico", _
Microsoft.Win32.RegistryValueKind.String)

any ideas why it isnt working? i have a suspicion i have the icon part completely wrong (following a tutorial that was hard to follow :p)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top