Possible Duplicate:
How do you click a button in a webbrowser control in C#?
I tried just doing it normally, but it kept telling me it needed to be on the other side of a = or +=. How do I fix this?
The code I’m using is:
browser.Document.GetElementById(“ap_h”).Click;
The piece of code you are looking for is:
Invoke a method in the DOM-Element
The code above performs the click in the WebBrowser Control for you.
Assign an event handler
If you want to assign an event handler:
with: