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

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

想挽留 发布于 2021-11-25 字数 335 浏览 786 回复 1 原文

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?

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

双手揣兜 2022-06-07 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.