How can I use mouse events in a .Net WebBrowser?
Hi!
I'm using the webbrowser subministrated by .net end I would like to know if there's anyway to, for example, click a web button by knowing its html code. I mean, I can take the html code and I can see where the button is set. Can I call any method to click this button I've found?
I know that with the IE web browser I can do that by searching by tag name and them calling the click method, but I would like to do that with the .net control.
THANKYOU!!!
Re: How can I use mouse events in a .Net WebBrowser?
yes you can you need to get the item by id and then use InvokeMember("Click")
something like this
VB Code:
Dim doc As HtmlDocument = Me.WebBrowser1.Document
doc.GetElementById("Button").InvokeMember("Click")