We have developed (derived from VB native image control) own ActiveX control to handle images in VFP (not-isometric streching, cut/copy/paste and other functions not available in standard ActiveX controls.)
My question is related to the way FoxPro determines which form is the active one (the value of property ActiveForm).
Each time we refer to this property from the Activate event of the form with this ActiveX on it, its value is correct - ActiveForm returns refference to thisform (which is Activated).
However as soon as the ActiveX control gets the focus the property ActiveForm is no longer valid - it contains reference to the OleControl object on the form.
So once again - what should be done to prevent this behaviour from the ActiveX? How is the activeform property of the application object set?
____
P.S. I am writing to Mike Stewart, but anyone from the MS staff or from the UT community is welcome, if have information about this issue.
TIA
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!