private void tse_Load(object sender, EventArgs e)
{
//this.webBrowser1.Navigate("http://www.sina.com.cn/");
this.webBrowser1.IsWebBrowserContextMenuEnabled = true;
}
//此按钮登陆新浪邮箱。。。。。。。。。测试通过。
private void button2_Click(object sender, EventArgs e)
{
HTMLDocument doc = webBrowser1.Document.DomDocument as HTMLDocument;
//登录名
HTMLInputElementClass input = doc.all.item("u", 0) as HTMLInputElementClass;
input.value = "lin833";
//密码
input = doc.all.item("psw", 0) as HTMLInputElementClass;
input.value = "33333333";
//登录
//