How to set the default browser home page (IE) with C#?

后端 未结 3 1919
醉酒成梦
醉酒成梦 2021-01-15 13:25

How can I programmatically change my browser\'s default home page with C#?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 13:57

    I'd hit the registry:

    For User Based Changes

    HKCU\Software\Clients\StartMenuInternet

    Check the keys below this key for the list of browsers on the system. Set the reg_sz value to the name of the key of the browser that you want to set as default.

    For Machine-Wide Changes

    Check HKLM\Software\Clients\StartMenuInternet for the system

    Help with C# Registry Modifications

    see here: http://www.csharphelp.com/archives2/archive392.html

提交回复
热议问题