Наследование: System.Windows.Forms.WebBrowser, IVisibleInfo
Пример #1
0
        // When panel is shown
        public override void OnShow()
        {
            General.Sounds.SetAudioOutputPrimary();

            // Create the browser
            browser = new DisplayWebBrowser();
            browser.AllowWebBrowserDrop            = false;
            browser.IsWebBrowserContextMenuEnabled = false;
            browser.Location                   = new System.Drawing.Point(0, 0);
            browser.Dock                       = DockStyle.Fill;
            browser.MinimumSize                = new System.Drawing.Size(20, 20);
            browser.Name                       = "browser";
            browser.ScriptErrorsSuppressed     = true;
            browser.ScrollBarsEnabled          = false;
            browser.TabIndex                   = 999;
            browser.WebBrowserShortcutsEnabled = true;
            browser.ProgressChanged           += browser_ProgressChanged;
            browser.Navigating                += browser_Navigating;
            browser.NewWindow                 += browser_NewWindow;
            browser.DocumentCompleted         += browser_DocumentCompleted;
            browser.Navigated                 += browser_Navigated;
            browser.FileDownload              += browser_FileDownload;
            browserframe.Controls.Add(browser);
            browser.SendToBack();

            Reset();

            base.OnShow();

            General.MainWindow.DisableScreensaver();
        }
Пример #2
0
        // When panel is shown
        public override void OnShow()
        {
            General.Sounds.SetAudioOutputPrimary();

            // Create the browser
            browser = new DisplayWebBrowser();
            browser.AllowWebBrowserDrop = false;
            browser.IsWebBrowserContextMenuEnabled = false;
            browser.Location = new System.Drawing.Point(0, 0);
            browser.Dock = DockStyle.Fill;
            browser.MinimumSize = new System.Drawing.Size(20, 20);
            browser.Name = "browser";
            browser.ScriptErrorsSuppressed = true;
            browser.ScrollBarsEnabled = false;
            browser.TabIndex = 999;
            browser.WebBrowserShortcutsEnabled = true;
            browser.ProgressChanged += browser_ProgressChanged;
            browser.Navigating += browser_Navigating;
            browser.NewWindow += browser_NewWindow;
            browser.DocumentCompleted += browser_DocumentCompleted;
            browser.Navigated += browser_Navigated;
            browser.FileDownload += browser_FileDownload;
            browserframe.Controls.Add(browser);
            browser.SendToBack();

            Reset();

            base.OnShow();

            General.MainWindow.DisableScreensaver();
        }