Answer the question
In order to leave comments, you need to log in
How to launch the browser in a separate CefSharp window?
It was created behind the elements, but how do you launch the browser in a separate window?
Code now:
namespace WinFormsApp7
{
public partial class Form1 : Form
{
private ChromiumWebBrowser ChromeBrowser;
public Form1()
{
InitializeComponent();
InitializeChromium();
}
private void InitializeChromium()
{
CefSettings Settings = new CefSettings();
Cef.Initialize(Settings);
ChromeBrowser = new ChromiumWebBrowser("https://kad.arbitr.ru/");
this.Controls.Add(ChromeBrowser);
ChromeBrowser.Dock = DockStyle.Fill;
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Cef.Shutdown();
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question