您好!
据我所知WebBrowser控件是不支持这个功能的。我们可以在页面加载完成之后清空Cookies,例如:
wb.Document.Cookie.Remove(0, (wb.Document.Cookie.Count - 1))
其中wb为WebBrowser控件对象实例。这样可以达到WebBrowser控件中不含Cookies。这样也不影响DocumentCompleted的运行。
另外,这个论坛是讨论WPF开发相关问题的,关于WINForm的问题,我建议您在一般性问题讨论区发帖。
感谢您对MSDN论坛的支持!
祝您生活愉快!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.