Hi;
I have a problem with webbrowser control. Code runs ok till it gets to
HtmlElement submit line where it returns a null error message
Object reference not set to an instance of an object.
The code works fine with the first element but not the second.
I would also like to save the website when the submit button is clicked.
Any help most welcome.
Thank you
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlElement dropdown = this.wb.Document.All["ctl05_ddlGroupSelector"];
dropdown.SetAttribute("selectedIndex", "1");
HtmlElement submit = this.wb.Document.All["ct105_1bSubmit"];
submit.InvokeMember("click");
}