简体   繁体   English

深度复制System.Windows.Forms.WebBrowser对象/还原状态

[英]Deep copy System.Windows.Forms.WebBrowser Object/Restore State

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. 本质上,我想做的就是复制一个WebBrowser对象,这样我就可以执行“在新选项卡中打开”或“在新窗口中打开”操作,以维护所有发布的数据。 I don't just want to navigate to the same URL as in the original WebBrowser object, rather I want to repeat the HttpWebRequest. 我不仅要导航到与原始WebBrowser对象中相同的URL,还想重复HttpWebRequest。 Is this possible? 这可能吗? How? 怎么样?

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. 我相信WebBrowser对象是一个控件,因此它具有窗口句柄,如果尝试克隆它,将会引起问题。 I don't think you're going to get the behavior you want doing this. 我认为您不会获得想要执行此操作的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM