Search and Scroll HTMLViewer Window?

Under examples there is a sample text app called “Search and Scroll”.
I want to do the same exact thing but with an HTMLViewer1 vs. a TextArea1.
I’m doing this as a desktop app NOT a web app.

I want to enter text and have it find the text in the HTMLView1 window. Is this possible, I’ve searched the documentation and forums, but apparently i’m not too good at this.

This is the code on the action of the button, can someone please help me with this?

Dim searchText As String = TextField1.Text
Dim charPos As Integer
charPos = InStr(TextArea1.Text, searchText)

If charPos > 0 Then
Dim lineNum As Integer
lineNum = TextArea1.LineNumAtCharPos(charPos)
TextArea1.ScrollPosition = lineNum
End If

[quote=239918:@Wally David]Under examples there is a sample text app called “Search and Scroll”.
I want to do the same exact thing but with an HTMLViewer1 vs. a TextArea1.
I’m doing this as a desktop app NOT a web app.

I want to enter text and have it find the text in the HTMLView1 window. Is this possible, I’ve searched the documentation and forums, but apparently i’m not too good at this.

This is the code on the action of the button, can someone please help me with this?

Dim searchText As String = TextField1.Text
Dim charPos As Integer
charPos = InStr(TextArea1.Text, searchText)

If charPos > 0 Then
Dim lineNum As Integer
lineNum = TextArea1.LineNumAtCharPos(charPos)
TextArea1.ScrollPosition = lineNum
End If[/quote]

MBS has a plugin that does that search brilliantly. Christian ? I forgot which one it is.

Not sure about the scroll, though.