How to highlight (select) text in webbrowser control

K

kimiraikkonen

Hi,
I can determine a specific text on a webpage in webbrowser control
using "webbrowser1.Document.Body.InnerText", but i want to select /
highlight the text using my own implementation instead of using CTRL +
F keystroke.

Example:
If webbrowser1.Document.Body.InnerText.contains("mytext") = True Then

' Select "mytext" in webbrowser

End if

How to do this?

Thanks

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top