Wiki Home

Screen Active Form


Namespace: WIN_COM_API

July 2000's FoxPro Advisor Tip of the Month was a function that works around a problem where certain ActiveX controls incorrectly tell Visual FoxPro 6.0 (has this been resolved in later versions?) that they are _SCREEN.ActiveForm, rather than letting VFP see the forms that contain them. The author, Javed Aslam, had "seen this behavior with version 6.0 of Microsoft Toolbar Control, Coolbar Control, and Tabbed Dialog." It basically involves getting the Parent if the Active Form.BaseClass is "OLECONTROL" rather than "FORM".

Subscribers to FoxPro Advisor's online archive can see the full tip at: http://foxproadvisor.com/doc/06795
( Topic last updated: 2003.02.18 03:24:17 PM )