using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Gethtml
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
webBrowser1.Navigate("http://passport.csdn.net/account/register");
}
private void button1_Click(object sender, EventArgs e)
{
//HtmlElement he = webBrowser1.Document.GetElementById("kw");
// he.InnerText = textBox1.Text;
// HtmlElement bt = webBrowser1.Document.GetElementById("su");
// bt.Focus();
// webBrowser1.Document.Forms[0].RaiseEvent("onsubmit");
// aReg
webBrowser1.Document.GetElementById("aReg").RaiseEvent("onclick");
// bt.RaiseEvent("onclick");
//System.Diagnostics.Process.Start("http://www.baidu.com?id=" + textBox1.Text + "");
// webBrowser1.Focus();
}
}
}