How to internet explorer properties window in C#

▼魔方 西西 提交于 2020-01-12 08:26:57

问题


I am working on a windows application, where i have to provide the user, a way to change the proxy settings by opening the IE settings window. Google chrome uses the same method, when you try to change the proxy settings in chrome, it will open internet explorer properties window with the connection tab selected.

I have observed that chrome is running run32dll.exe to achieve this, but it is also passing some arguments along with it

System.Diagnostics.Process.Start("rundll32.exe", "SomeArgumentsHere");

my only problem is i don't know what arguments it is passing.

To simplify my question, i want to know a way to open IE settings window with the connection tab selected, from my C#.net application

Update the following code worked for me

System.Diagnostics.Process.Start("inetcpl.cpl", ",4");

回答1:


This is the complete command passed by Google chrome (obtained using Process Explorer):

"C:\Windows\system32\rundll32.exe" C:\Windows\system32\shell32.dll,Control_RunDLL C:\Windows\system32\inetcpl.cpl,,4


来源:https://stackoverflow.com/questions/4311526/how-to-internet-explorer-properties-window-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!