How do I invoke the Find (On this Page) (^F) in Internet Explorer from a Command Button in an HTML document?

I hope someone can help me on this one since I'm relatively new to Visual Basic 6.0 .....

What I would like to do is have the user click on a command button which would invoke the Find (On This Page) feature in Internet Explorer. The questions I have are:

1) What type of project in Visual Basic 6.0 do I use to invoke the Find (On This Page) "^F" feature in Internet Explorer on a custom web page (DHMTL App, ActiveX IDE, ActiveX DLL, ActiveX Control, etc...)?

2) After doing some research on Sendkeys it seems that there may be some library(ies) that I need to call....If so then what do I need to declare?

3) How would the code look like in VB code?
HCAAdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

daniel_j_cCommented:
if you want a browser embedded into your app, create a new project, go to components and tick "microsoft internet controls". drop the browser onto your form.

you should be able to us:
WebBrowser1.ExecWB OLECMDID_SHOWFIND, OLECMDEXECOPT_PROMPTUSER

to pop up the find dialog box but good old microsoft has deliberately disabled it. take a look here:

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20171838.html
0
HCAAdminAuthor Commented:
Thanks to you I got some good ideas and a better understanding of VB 6.0......
However I guess what I meant to say is that I need a macro button on my own web page that sends Ctrl+F to IE browser and invokes the Find (On This Page) prompt box to appear. I found javascript code that will generate a Find text box however our CEO really wants the IE version (CTRL+F) and javascript & php cannot invoke this since IE does not allow it......

I've heard it's possible to do this using VB6.0 since it is a Microsoft product. Do you or anyone else know how to do this or even if it is possible?  
0
daniel_j_cCommented:
it should be possible but microsoft has "disabled this behaviour" - by design of course! see http://support.microsoft.com/kb/q251133/

i can't think of any other way of getting it to work but of course, if you're using a browser in vb, you can create a fairly extensive find function yourself.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.