public partial class TBForm : Form
{
private readonly ChromiumWebBrowser browser;
public TBForm()
{
InitializeComponent();
browser = new ChromiumWebBrowser("www.baidu.com")
{
Dock = DockStyle.Fill,
};
this.Controls.Add(browser);
}
}
i got this result

CefSharp.WinForms "Dock =DockStyle.Fill" no effect, black edge.
how to make the ChromiumWebBrowser fill the TBForm?
Do you tried disable the GPU engine using CefCommandLineArgs?
When you declare:
CefSettings settings = new CefSettings();
before initializations:
Cef.Initialize(settings);
Try to add the nex line of code:
settings.CefCommandLineArgs.Add("disable-gpu", "1");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With