日期:2014-05-18 浏览次数:21113 次
using System;
using System.Windows.Forms;
class Test : Form
{
Test()
{
WebBrowser w = new WebBrowser();
w.Parent = this;
w.Dock = DockStyle.Fill;
w.DocumentText =
"<html><body>Please enter your name:<br/>" +
"<input type='text' name='userName'/><br/>" +
"<a href='http://www.microsoft.com'>continue</a>" +
"</body></html>";
}
[STAThread]
static void Main()
{
Application.Run(new Test());
}
}
------解决方案--------------------