JJohn JJohn - 2 months ago 19x
C# Question

How to change home page in Internet Explorer using C#?

Is it possible to change home page in Internet Explorer in C# application? Solution for other browsers (Firefox, Chrome) would be also nice.


Well, for IE, you have to set registry key:

HKCU\Software\Microsoft\Internet Explorer\Main\Start Page

For firefox, you will need to edit the js file: prefs.js. This can be found in: C:\Users\ [USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\ [User Subfolder]

Chrome, Stores it data in: C:\Users\<username>\AppData\Local\Chromium\User Data\Default folder in a Preferences file. This is in JSON format. Editing it shouldn't be trouble