WebBrowser control in vb.net.

Hi,

How can a get the text from WebBrowser control in vb.net.

[74 byte] By [srinivasintouch] at [2007-12-24]
# 1

Thread will be moved to the appropriate forum once the forums are back up and running again.

You can use the DocumentText property:

Dim theHtmlText as String = Me.theWebBrowserControl.DocumentText

or you can go into the Document property itself, there you can go into say the Body property to get the body part of the Html page.

I hope this link helps you/gives you more information about the control

http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.document.aspx

http://msdn2.microsoft.com/en-us/library/system.windows.forms.webbrowser.documenttext.aspx

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
for example: WebBrowser1.Document.GetElementById("bizName").InnerText
xdomain at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...