你能解释为什么我会收到这个错误吗?
private void startButton_Click(object sender, EventArgs e)
{
HtmlElement mainNav = webBrowser1.Document.GetElementByID("home");
mainNav.InvokeMember("click");
}
错误 1
'System.Windows.Forms.HtmlDocument' does not contain a definition for 'GetElementByID' and no extension method 'GetElementByID' accepting a first argument of type 'System.Windows.Forms.HtmlDocument' could be found (are you missing a using directive or an assembly reference?)