|
namespace WindowsApplication3
{
public partial class Form1: Form
{
public Form1 ()
{
InitializeComponent ();
}
private void Form1_Load (object sender, EventArgs e)
{
webBrowser1.Navigate ("http://www.baidu.com");
}
private void webBrowser1_DocumentCompleted (object sender, WebBrowserDocumentCompletedEventArgs e)
{
webBrowser1.Document.Forms [0] .Children ["wd"]. SetAttribute ("value", "test");
}
}
} |
|