我想使用带有webbrowser控件的C#在IE的Show pictures选项之间切换,而无需重启我的应用程序 .

我目前的解决方案

//THE REG FILE:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Display Inline Images"="yes"

然后从我的c#项目执行reg文件 .

System.Diagnostics.Process regeditProcess = System.Diagnostics.Process.Start("regedit.exe", "/s imagesON.reg");
regeditProcess2.WaitForExit();

the code changes the "show images" setting in Internet explorer to true, and loads all images.

但是reg文件只能运行一次 . 创建Web浏览器后,IE的自定义设置将加载到其中,IE中的任何新设置都不会更新到Web浏览器控件中 . 相反,必须为IE中的任何新设置处理和重新创建webbrowser控件才能生效 .

所以,我的问题,如何更改IE中的设置并将这些新设置加载到我正在运行的应用程序的webbrowser控件中,而无需重启?

6 Months Later... Still Waiting for a answer here guys :/