>>I am have an IE Browser control on a form.
>>
>>When I click on a link, how can I run VFP code passing
>>in the link name?
>
>Using VFPCOM, create a custom object that implements the Web Browser events, and use BindEvents to Bind an instance of the custom class to your web browser control; you'll porbably want to add code to the BeforeNavigate event. VFPCOM is available from msdn.microsoft.com/vfoxpro/downloads; you'll need to read the docs for both VFPCOM and the Web Browser control, which on my machine takes the ProgID "WebBrowserWrapper.WebBrowserWrapper.1"
With the ActiveX control, VFPCOM is not necessary because the events are already bound to VFP methods of the OLE container. All you need to do is place your code in the BeforeNavigate2 method of the control.
Erik Moore
Clientelligence