以百度为例,将winform上的textbox的值传到百度的搜索框里:webBrowser1.Document.GetElementById("kw1").SetAttribute("value", this.textBox1.Text);