Notifications
Clear all
[Closed] CefSharp in maxscript
Dec 19, 2019 9:10 am
Hello,
Recently I am trying to use a C# class to embed Chrome browser which named CefSharp,this the link:
It works well in Visual Studio,below is the code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public ChromiumWebBrowser browser;
public void InitBrowser()
{
Cef.Initialize(new CefSettings());
browser = new ChromiumWebBrowser("www.bing.com");
this.Controls.Add(browser);
browser.Dock = DockStyle.Fill;
}
public Form1()
{
InitializeComponent();
InitBrowser();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
Does anyone has experience with embed CefSharp in maxscript and make it work?Thanks in advance for any help.