I had a similar issue with a screenscraper program, and solved it with the following code:
HtmlElement element = Document.All["username"];
element.SetAttribute("value", myLogon);
element = Document.All["password"];
element.SetAttribute("value", myPassword);
element = Document.All["commit"];
element.InvokeMember("click");
The textboxes are named
username
and
password
in the DOM of the web page, and the action button is labelled
commit
. You just need to look into the HTML source to find the names of the elements that you wish to alter or otherwise manipulate.