Windows Forms WebBrowser:闪烁问题

发布于 2024-12-17 15:18:56 字数 120 浏览 1 评论 0原文

我已将 Windows 窗体 WebBrowser 控件添加到拆分器控件。但是当调整 WebBrowser 控件大小时会出现闪烁。我已经搜索了解决方案,但仍然找不到。如果有人知道如何防止这种情况,请帮忙。

谢谢

I have added windows Forms WebBrowser control to splitter control. But when resizing WebBrowser control get flicker. I have searched a solution but still i cannot find. If Anyone know how to prevent this please help.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(1

雪化雨蝶 2024-12-24 15:18:56

尝试在表单上启用双缓冲。

this.SetStyle(
  ControlStyles.AllPaintingInWmPaint |
  ControlStyles.UserPaint |
  ControlStyles.DoubleBuffer,true);

Try to enable dublebuffering on the form.

this.SetStyle(
  ControlStyles.AllPaintingInWmPaint |
  ControlStyles.UserPaint |
  ControlStyles.DoubleBuffer,true);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文