public WinFormium(string initialUrl) { if (!IsDesignMode) { BrowserWrapper = new WebBrowserControl(initialUrl); Controls.Add(BrowserWrapper); BrowserWrapper.Dock = DockStyle.Fill; BrowserWrapper.SendToBack(); webBrowserForm = new WebBrowserFormImplement(this, this.Chromium); } splashPanel = new SplashPanelImplement(this, this.Chromium); }
public ChromFXBaseForm(string initialUrl) { FormHandle = this.Handle; if (!IsDesignMode) { BrowserWrapper = new WebBrowserControl(initialUrl); Controls.Add(BrowserWrapper); BrowserWrapper.Dock = DockStyle.Fill; BrowserWrapper.SendToBack(); webBrowserForm = new WebBrowserFormImplement(this, this.Chromium); Chromium.OnBrowserMessage += OnWebBrowserCoreMessage; } splashPanel = new SplashPanelImplement(this, this.Chromium); }