Implementing "Find on this page" in WebBrowser
Posted on 2000-05-08
I need to implement the "Find on this page" dialog for the WebBrowser control. I have tried the following, and neither works correctly:
First, I tried sendkeys:
This worked for a while, but I had to implement an interface to trap the right click on the menu. Doesn't seem to work anymore.
Second, I tried the ExecWB method. However, this method brings up the Find File method instead.
ActiveForm.WebBrowser1.ExecWB OLECMDID_FIND, OLECMDEXECOPT_DONTPROMPTUSER
Bonus points if you can indicate how to implement "Find Next (F3)" functionality...