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

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

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

相关标签:
3条回答
  • 2021-01-15 13:56

    Set it in this registry setting:

    HKCU\Software\Microsoft\Internet Explorer\Main\Start Page
    
    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-15 13:58

    See this, which is not in C#, but you should be able to work out the registry stuff in C# pretty easily.

    http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1108.mspx

    Please don't arrange for this code to run on my machine!

    0 讨论(0)
提交回复
热议问题