This trick doesn't work in VFP8SP1 anymore. See
Re: First bug in VFP8SP1 discovered Thread #
836211 Message #
836660. You can use BundEvent instead.
>I have the following code used in a VFP 7 app to handle resizing
>my application when VFP is resized. In VFP8, I get the error
>"Unknown member OSCREENOBJ" on the _Screen.AddObject ... line
>
>
>FUNCTION AddVfpHooks
>
> _Screen.AddObject("VfpEventsHook", "VfpEvents")
>
>RETURN
>
>
>
>DEFINE CLASS VfpEvents AS Custom
>
> oScreenObj = _Screen
>
> PROCEDURE oScreenObj.Resize()
>
> oApp.VfpResize()
>
> ENDPROC
>
>ENDDEFINE
>
>
--sb--