I'm developing a Winform tool using Viusal Studio 2022. I want to be able to browse the website through a form. But there is often a problem when opening a web page, that is, the web page is not fully displayed. For example, displaying a Google, cannot display a complete "login"
like this:
Here is my code:
public partial class Form1 : Form
{
CefSharp.WinForms.ChromiumWebBrowser webCom = null;
public Form1()
{
InitializeComponent();
Load += Form_Load;
}
protected void Form_Load(object sender, EventArgs e)
{
webCom = new CefSharp.WinForms.ChromiumWebBrowser("www.Google.com");
webCom.Dock = DockStyle.Fill;
panel1.Controls.Add(webCom);
webCom.Load("www.Google.com");
}
private void btn_multiChrome_Click(object sender, EventArgs e)
{
for (int i = 0; i < 5; i++)
{
childForm child = new childForm();
child.Show();
}
}
}
It has been set to maximize, even if the size is modified, it still cannot be displayed in full. Does anyone know where the problem is?