>Hi...
>I have sucessfully put my VFP 6.0 app in the system tray
>using code I found here.
>
>It's a server so it executes a sequence of events
>on a timer...
>
>Using the code I put the thing in the tray but the application stays visible.
>
>So I just do a
>HIDE WINDOW SCREEN
>
>Command to get rid of the screen...
>
>But if I do this the program just closes down...
>
>I want it to keep executing....The timer...
>
>SO I tried...
> thisform.minimized=.t.
> HIDE WINDOW SCREEN
> read events
>
> DO WHILE thisform.minimized=.t.
>
>
> ENDDO
>
>Then when I click on the icon in the tray
>It calls a function that does:
>***********************************
>SHOW WINDOW SCREEN
>if DelSysTrayIcon(1)
> thisform.minimized=.f.
> THISFORM.GOTOFOCUS()
>endif
>
>**********************************
>
>This works fine but the program doesn't execut the timer
>because the loop does nothing...
>
>I tired various things but no luck
>
>So the Million dollar question is:
>What do I put in here:
>
> DO WHILE thisform.minimized=.t.
>
>
> ENDDO
>
>So that the program executes the timer on the screen...
>When the screen is hidden....
>
Why not simply
_SCREEN.Visible = .F. or
_SCREEN.WindowsState=1 (minimizes) if you want to be able to bring it back easily?