Reputation: 69
I am working with Internet Explorer. I know how to change the home page or default search engine by changing the registry, but I don't understand how some programs (e.g. Baidu PC Faster, Search Protect) change the URL of a new tab page. Homepage remains unique, new tab page doesn't read homepage
Does someone know how to do this?
Upvotes: 2
Views: 3195
Reputation: 12785
You should change the HKLM\Software\Microsoft\Internet Explorer\AboutURLs\Tabs
registry key.
RegistryKey myKey = Registry.LocalMachine.OpenSubKey(@"HKLM\Software\Microsoft\Internet Explorer\AboutURLs", true);
myKey.SetValue("Tabs", "www.YourURL.com", RegistryValueKind.String);
Upvotes: 0
Reputation: 610
To change the internet explorer default page you have to change the key [Start Page] in the path HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
Use this code to do that
RegistryKey myKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Main", true);
myKey.SetValue("Start Page", "www.google.com", RegistryValueKind.String);
Upvotes: 1