Hi Alvin!
Try the WMINIMUM() function. Yeah, it's old 2.6 stuff but it just might work :-)
>I placed a code in the deactivate method of a form
>
>if thisform.windowstate=1
> =minimize to tray
>endif
>
>this works when you run the form but when i compile it to an exe it doesn't. Any workaround?
>
>Thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05