Beispiel #1
0
        private void addWeb()
        {
            WebBrowserD webBrowser1 = new WebBrowserD();

            webBrowser1.Size = new Size(1070, 585);
            this.Controls.Add(webBrowser1);
            webBrowser1.Navigate("about:blank");
        }
Beispiel #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     foreach (Control ctrl in this.Controls)
     {
         if (ctrl is WebBrowserD)
         {
             WebBrowserD axweb = (WebBrowserD)ctrl;
             axweb.Navigate(textBox1.Text);
             FlushMemory();
         }
     }
 }
Beispiel #3
0
 private void RemoveWeb()
 {
     foreach (Control ctrl in this.Controls)
     {
         if (ctrl is  WebBrowserD)
         {
             WebBrowserD web = (WebBrowserD)ctrl;
             this.Controls.Remove(ctrl);
             web.Navigate("about:blank");
             web.Dispose(true);
             FlushMemory();
         }
     }
 }