Deep copy System.Windows.Forms.WebBrowser Object/Restore State

情到浓时终转凉″ 提交于 2019-12-08 02:04:27

问题


Essentially what I want to do is copy a WebBrowser object such that I can do the equivalent of "Open In New Tab" or "Open In New Window" actions, maintaining any posted data. I don't just want to navigate to the same URL as in the original WebBrowser object, rather I want to repeat the HttpWebRequest. Is this possible? How?


回答1:


I believe the WebBrowser object is a control, and therefore it has a window handle, which is going to cause issues if you try to clone it. I don't think you're going to get the behavior you want doing this.



来源:https://stackoverflow.com/questions/794117/deep-copy-system-windows-forms-webbrowser-object-restore-state

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