如何在 webBrowser1 中打开网页?
我在新窗口中添加了新的 webBrowser 组件,当我添加按钮时,这是此按钮上的代码:
private void button1_Click(object sender, EventArgs e)
{
string URL = @"http://www.site.com/search?=N";
this.webBrowser1.Url = new Uri(URL);
this.webBrowser1.Navigate("URL");
this.webBrowser1.Refresh();
}
但它不起作用 - 没有报告错误,但 webBrowser1 在按下按钮后不显示任何数据。