Tag:

CefWebBrowser没有出现

解: 此问题是由于未在Program.cs中加载CefRuntime引起的。 只需将示例文件中的所有代码复制到Program.cs即可。 然后,如果您的CefWebBrowser卡住并且“旋转等待鼠标光标”,则设置SingleProcess = true。 原因是如果从已识别的辅助进程调用浏览器,则整个进程将被阻止,直到进程结束。 题: 有没有人在WinForm中使用CEF(Chromium Embedded Framework)? 这个组件让我折磨了一整天。 我不能让它发挥作用。 它只是没有出现。 所以我的问题是:如何在WinForm应用程序中使用CEF? 我确实检查了论坛,但令人惊讶的是没有人问过这个问题。 看起来我是唯一一个不知道如何使用它的愚蠢的人。 public partial class Form1 : Form { private CefWebBrowser cefwbShell = null; //private readonly SynchronizationContext _pUIThread; private void Form1_Load(object sender, EventArgs e) { cefwbShell.Visible = true; cefwbShell = new CefWebBrowser { StartUrl = “http://example.com” }; cefwbShell.Parent = this; […]