C# webBrowser 控件赋值

            string body = PostWebRequest(txtURL.Text, textBox2.Text);
            if (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }
            this.webBrowser1.ScriptErrorsSuppressed = true;
            this.webBrowser1.Navigate("about:blank");
            this.webBrowser1.Document.Write(body);
            this.webBrowser1.Refresh();

  

posted @ 2017-06-12 09:58  懒人境界  阅读(1214)  评论(0编辑  收藏  举报