浏览的问题
private void btn1_Click(object sender, EventArgs e)
{
if (txtAddress.Text.Length < 1)
return;
try
{
string StrUrl = txtAddress.Text;
System.Object MyObject = " ";
webBrowser1.Navigate(StrUrl, ref MyObject, ref MyObject, ref MyObject, ref MyObject);
}
catch (Exception Err)
{
MessageBox.Show(Err.Message, "信息提示 ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
webBrowser1.Navigate(StrUrl, ref MyObject, ref MyObject, ref MyObject, ref MyObject)提示错误:“Navigate”方法没有采用“5”个参数的重载
------解决方案--------------------最后一个参数不对,你查查msdn
------解决方案--------------------程序没错,应该是别的地方错误,重新编译一遍看看