Mike,
Just tried to similate. Seems to work over here
Perhaps the easiest to do is to put a few statements in the Activate)( and Deactivate of both ListBoxForm and FakeForm and see what happens
=DoDefault()
acti screen
?program()
Or perhaps turn event tracking on and watch the output window.
There must be a way
>Gregory,
>
>I tried setting step on in the fakeform.DeActivate() event and it never gets there. The help says, "...Moving the focus to or from a form in another application doesn't trigger either [Activate or DeActivate] event."
>
>Perhaps I should have mentioned that the form containing the listbox has a ShowWindow property set to "In Top-Level" and is also a modal form.
>
>Fakeform.ShowWindow is set to "In Top-Level Form".
>
>So the real situation is that I have a main form (called say, Mainform) that can then do another form (called say, AnotherForm) that is shown in Mainform and AnotherForm does Fakeform that is also shown in Mainform.
>
>Does any of this shed some light on the situation? Do you think that my form settings is making VFP think that the forms are different applications?
>
>Mike
>
>>Mike,
>>
>>Doesn't the FakeForm.DeActivate() method fire when you click outside its boundary ?
Gregory