That works well - I misread the BINDEVENT description.
Thanks Stefan and Naomi!!!
Howard
>>When I click on a screen region owned by _SCREEN, my app's form is deactivated.
>>This behavior appears to be different with VFP9 than with VFP5.
>>
>>I tried using BINDEVENT to capture the mouse click and activate my form:
>>BINDEVENT(_SCREEN,"Click",THISFORM,"Click")
>>
>
>form.Click() is an event - perhaps the form.Show() method might work better? I believe the following sample.PRG might do what you want.
>
>
>hth
>-Stefan
>
>
>
>PUBLIC oForm as Form
>oForm = CREATEOBJECT('TestForm')
>oForm.Show()
>RETURN
>
>DEFINE CLASS TestForm as Form
> AutoCenter = .T.
> PROCEDURE Init
> BINDEVENT(_screen,'Click', This,'ScreenClick')
> ENDPROC
> PROCEDURE Destroy
> UNBINDEVENTS(This)
> ENDPROC
> PROCEDURE ScreenClick
> This.Show()
> ENDPROC
>ENDDEFINE
>