leosco

leosco

  • NA
  • 13
  • 0

C# WebBrowser Select/Search

Nov 9 2010 12:01 AM
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)