1.在winform中显示html内容:
private void Test()
{
WebBrowser w = new WebBrowser();
w.Parent = this;
w.Dock = DockStyle.Fill;
w.DocumentText =
"<html><body><br><br><br>Please enter your name:<br/>" +
"<input type='text' name='userName'/><br/>" +
"<a href='http://www.microsoft.com'>continue</a>" +
"</body></html>";
}