Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX control refference stored in _VFP.ActiveForm?!
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
ActiveX control refference stored in _VFP.ActiveForm?!
Miscellaneous
Thread ID:
00676112
Message ID:
00676112
Views:
60
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!

Next
Reply
Map
View

Click here to load this message in the networking platform