예제 #1
0
        private void frm_match_100_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                IE ie = new IE();
                ie.browser        = new WebBrowser();
                ie.browser.Name   = i.ToString();
                ie.browser.Width  = 1200;
                ie.browser.Height = 600;
                ie.is_use         = false;
                ie.index          = i;
                ie.browser.ScriptErrorsSuppressed = true;
                ie.browser.DocumentCompleted     += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.browser_DocumentCompleted);
                ies.Add(ie);

                if (i == 0)
                {
                    this.tab_browser.Controls.Add(ie.browser);
                    ie.browser.Dock = System.Windows.Forms.DockStyle.Fill;
                    ie.browser.BringToFront();
                }
            }
            bind_data();
        }
        private void frm_match_100_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                IE ie = new IE();
                ie.browser = new WebBrowser();
                ie.browser.Name = i.ToString();
                ie.browser.Width = 1200;
                ie.browser.Height = 600;
                ie.is_use = false;
                ie.index = i;
                ie.browser.ScriptErrorsSuppressed = true;
                ie.browser.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.browser_DocumentCompleted);
                ies.Add(ie);

                if (i == 0)
                {
                    this.tab_browser.Controls.Add(ie.browser);
                    ie.browser.Dock = System.Windows.Forms.DockStyle.Fill;
                    ie.browser.BringToFront();
                }
            }
            bind_data();
        }