Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

vb6 webbrowser string replace

$
0
0
please help in vb6 this time

i have vb6 with webbrowser i load up a webpage how ever i want to replace a string in innerhtml this is the output html

<DIV class=yui-u>
<DIV id=form-wrapper><A name=email-form></A>
<DIV class=email-form>
<DIV class=txt-expert>
<H3 class=expert>Email an expert about:<BR><SPAN>help</SPAN></H3></DIV>


as you can se the ( help ) text i want to replace that on webbrowser with my own custom text



this is vb.net code below

If WebBrowser1.DocumentText.Contains(oldstring) Then
WebBrowser1.DocumentText = WebBrowser1.DocumentText.Replace(oldstring, newstring)
End If

please help to make same for vb6 please

Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>