vb.net VB2010 如何用按钮清除cookies webbrowser?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14997161/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 12:27:01  来源:igfitidea点击:

VB2010 How can i clear cookies webbrowser with button?

vb.netvisual-studio-2010

提问by Sunay Solak

VB2010 How can i clear cookies webbrowser with button ?

VB2010 如何清除带有按钮的 cookie 浏览器?

I created my webbrowser on vb2010 but i have problem; how can i clear Webbrowser cookies & cache? Its been answered 1k times but i still didn't find working solution...

我在 vb2010 上创建了我的网络浏览器,但我有问题;如何清除 Webbrowser cookie 和缓存?它被回答了 1k 次,但我仍然没有找到可行的解决方案......

采纳答案by Cubsoft

You may have to do this before you actually run the web browser.

您可能必须在实际运行 Web 浏览器之前执行此操作。

Temporary Internet Files

临时网络文件

System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 8")

Cookies

饼干

System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2")

History

历史

System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 1")

Hope this helps.

希望这可以帮助。