>I've written a VB6 OCX Activex Painting Control that can be dropped on a VFP Form.
>
>Does anyone know how I can set a VFP Form Property from within the VB code? I want to set a custom "Form.HasChanged" property to .T. when a picture is edited.
>
>I know could have VFP do it with a VFP timer on the form checking the properties of the OCX control itself for changes. However, it would be more elegant if I could access VFP properties from within the OCX as editing was occuring.
>
>Any ideas, anyone?
>
>Don Meuse
>Spectrum Software, Miami, Florida USA
Once it's been dropped on a form, you can add code directly to the ActiveX events (in VFP) in your control. The code in these events can interact with your form (eg. just add: ThisForm.HasChanged = .T. in whatever ActiveX event should trigger this). Hope that makes sense.