how can i get the default homepage from the default browser (IE, firefox,…) in C#.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no universal way to do it. First, you’d need to find the default browser. The path to the EXE for the default browser is always stored in the registry key:
Once you know the browser, things are a lot more open-ended. Internet Explorer, for example, stores the home page URL in the following registry key:
In general however, browser can store the home page in any way they like (possibly in the registry but, possibly in a config file).
Note: If you’re not familiar with accessing the Windows registry in .NET/C#, the MSDN page should provide all the info you need.