2
Answers

C# WebBrowser Select/Search

leosco

leosco

13y
13.6k
1
Hi,

I want to make my own search function instead of the find dialog that shows up when you press Ctrl + F. I have captured the PreviewKeyDown event and checked for the Ctrl + F keys, but the problem is I can't find a way how to search and select text in the browser. Can someone tell me how to search and select text in a web browser, just like the find dialog does? The reason being I want to add a quick search button in my browser.

Thanks.
Answers (2)