Editing Registry For Default Browser
-
This topic is more about the registry then C# itself as i already know how to edit the registry in C#. I have created a basic webbrowser that i have added some personal features to with the .NET WebBrowser control. I want to be able to set this as my default webbrowser that opens urls when clicked say in an msn convo or when put in the "Run" box. I am using the following code to edit the registry: string root = "htmlfile\\shell\\open\\command"; RegistryKey rKey = Registry.ClassesRoot.OpenSubKey(root, true); rKey.SetValue("", Application.ExecutablePath + " %1"); rKey.Close(); And that works fine, It edits the registry to the path for my browser, and it also does the same in HKEY_CURRENT_USER with the same path. But yet still when i click a link or run a url in the run box it opens Firefox. Could someone offer any advice on how to set it to my browser please? Thanks for your time in reading :]