Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & MS IE Control
Message
From
02/04/2001 22:06:44
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00491125
Message ID:
00491159
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform