>Though this approach works on form level for Activate event I didn't manage
>to achieve anything for _Screen. There is no Activate event for _Screen object ; anything else ( Show , Refresh, Draw ) doesn't seem to suitable for the situation like this. I tried everything ( including Activate) anyway without success. So I am puzzled now what was meant in FAQ by
>"The approach is very useful to catch, for example, events of the _Screen form. "
>
Actually I have not tested my previous sugestion. The only event that fires when the main VFP window receives (or looses focus) is the _Screen.Paint() event. So you can use this event, but be careful because ANYTHING that changes the view of the main VFP window (for example other overlaping windows that are moved) will fire this event.
As an alternative you can use the _Screen.Resize() event and when activating the VFP window - first minimize it and then Maximize it. It is not a pretty approach, but it will work.
As a third option I think I have seen an FLL that alows you to expose _SCREEN events, but I do not think that it will help you here. (_Screen.Activate event is fired only when you execute _Screen.Show)
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!