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 Formium(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 += WebBrowserCore_OnBrowserMessage; } splashPanel = new SplashPanelImplement(this, this.Chromium); }