Question

I want to show "30%" in a MessageBox. How can I get this information from an element in a WebBrowser?

id="meterNumber">30%<
Was it helpful?

Solution

See HtmlDocument.GetElementById.

MsgBox(WebBrowser1.Document.GetElementById("meterNumber").InnerText) 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top