private void Form2_Load(object sender, EventArgs e) { string url = @"local://web/index2.html";// @"file:///L:/Wales.co.in/index.html"; _webControl = new ChromeWebControl(url); _webControl.Dock = DockStyle.Fill; _webControl.Show(); this.containerPanel.Controls.Add(_webControl); _webControl.Browser.RegisterJsObject("callbackObj",new CallbackObjectForJs()); }
private void Form1_Load(object sender, EventArgs e) { string url = @"local://web/index.html";// @"file:///L:/Wales.co.in/index.html"; var chrome = new ChromeWebControl(url); chrome.Dock = DockStyle.Fill; chrome.Show(); this.Controls.Add(chrome); //string page = string.Format("{0}HTMLEmbeddedResources/html/BootstrapExample.html", GetAppLocation()); // m_chromeBrowser.Load(page); }