Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }