Since you CCed, I would repeat you don't need eventhandler for this one. Check
Re: Using HTML code in Visual Fox Pro Thread #
1050590 Message #
1050602 for a sample. You could directly code in form as shown there or subclass shell.explorer for common code.
Cetin
>Thanks Olaf,
>
>Yes this uses some code "borrowed" from Calvin. I have played around a bit and made some enhancements of which will this is one. I have found that I can use the event code in the object itself without binding with eventhandler. In this particular case I just needed to update the navigation field with the current url. My class "saves" the last url and upon restart returns to it.
>
>Glenn
>
>>>I have the following class:
>>>
>>>Define Class cweb As OleControl
>>> OleClass="shell.explorer.2"
>>>
>>> Procedure Refresh
>>> NODEFAULT
>>>ENDDEFINE
>>>
>>>
>>>How do I find and define the interface for this OleControl so that I may bind to it with event handler.
>>>
>>>Thanks
>>>
>>>Glenn
>>
>>You got that from Calvin Hsia, don't you? That's the webbrowser control. You should be able to use the IWebBrowser2 Interface. Perhaps you rather want to bind to something inside the webpage? Then maybe take a look at my tag cloud example at tek tips:
http://www.tek-tips.com/viewthread.cfm?qid=1359037>>
>>In the last entry I use an interface of HTMLElementEvents to handle mouseover and out of a tags.
>>
>>Bye, Olaf.