
WebBrowser Find Text on this Page possible ?
Here is what I have done to implement a basic find/find next dialog
(findFirst is just a boolean to determine if this is the first time the user has
clcicked on the find button. If this example isn't
If findFirst Then
Set oRange =
M_frmViewMessage.brwWebBrowser.Document.Body.createTextRange
sSearch = findText.text
If oRange.findText(sSearch) Then
oRange.Select
findButton.Caption = "Find Next"
findFirst = False
Else
MsgBox ("Search string " & findText.text & " not found.")
End If
Else
Call oRange.Move("word")
sSearch = findText.text
If oRange.findText(sSearch) Then
oRange.Select
Else
MsgBox ("Finished searching mail message for string " &
findText.text)
End If
End If
Jamie
Quote:
> Does anyone know if it is possible to replicate the 'Find text on this Page'
> facility common with browsers such as IE, using the Web Browser control in
> VB please ?
> --
> David Bytheway