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
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