コード例 #1
0
        private void Create_AddNewShow_DisposableControls()
        {
            this.webBrowser1 = new System.Windows.Forms.WebBrowser();
            this.tabPage6.Controls.Add(this.webBrowser1);
            //
            // webBrowser1
            //
            this.webBrowser1.DocumentText = Parameters.newShowImageWebPage;
            this.webBrowser1.AllowWebBrowserDrop = false;
            this.webBrowser1.IsWebBrowserContextMenuEnabled = false;
            this.webBrowser1.WebBrowserShortcutsEnabled = true;
            this.webBrowser1.Location = new System.Drawing.Point(Parameters.AddNewShowWebBrowserPosition, 7); //184 190
            this.webBrowser1.Margin = new System.Windows.Forms.Padding(0);
            this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
            this.webBrowser1.Name = "webBrowser1";
            this.webBrowser1.ScriptErrorsSuppressed = true;
            this.webBrowser1.ContextMenuStrip = contextMenuStrip_AddNewShow;
            this.webBrowser1.Size = new System.Drawing.Size(Parameters.AddNewShowWebBrowserSize, 620); //798 1024
            //this.webBrowser1.TabIndex = 24;
            //this.webBrowser1.Url = new System.Uri("", System.UriKind.Relative);
            webBrowser1.SendToBack();

            while (webBrowser1.IsBusy)
            {
                Thread.Sleep(100);
            }

            this.timer_AddShowWebLoad01 = new System.Windows.Forms.Timer(this.components);
            this.timer_AddShowWebLoad02 = new System.Windows.Forms.Timer(this.components);
            this.timer_AddShowWebLoad03 = new System.Windows.Forms.Timer(this.components);
            this.timer_AddShowWebLoad04 = new System.Windows.Forms.Timer(this.components);
            //
            // timer_AddShowWebLoad01
            //
            this.timer_AddShowWebLoad01.Interval = 1000;
            this.timer_AddShowWebLoad01.Tick += new System.EventHandler(this.timer_AddShowWebLoad01_Tick);
            //
            // timer_AddShowWebLoad02
            //
            this.timer_AddShowWebLoad02.Interval = 1000;
            this.timer_AddShowWebLoad02.Tick += new System.EventHandler(this.timer_AddShowWebLoad02_Tick);
            //
            // timer_AddShowWebLoad03
            //
            this.timer_AddShowWebLoad03.Interval = 5000;
            this.timer_AddShowWebLoad03.Tick += new System.EventHandler(this.timer_AddShowWebLoad03_Tick);
            //
            // timer_AddShowWebLoad04
            //
            this.timer_AddShowWebLoad04.Interval = 30000;
            this.timer_AddShowWebLoad04.Tick += new System.EventHandler(this.timer_AddShowWebLoad04_Tick);
        }