I have asked this question before. Thanks Eric and other guys of you that provide the
solution to achieve this. I have tried it and it really shows the icon in the systray.
But I have a question:

I compile my project with this systray icon tool to an execution file. But when I run it,
the main Visual FoxPro is still appeared, although the systray icon has been shown. I
have included a command _screen.Hide. But the result will be the application quits.

I have found a DLL, systray.dll that can really hide Visual FoxPro window the systray
icon is appeared. But there is something that does not meet my requirement: When I left
or right click the systray icon, the Visual FoxPro screen is appeared.

What my requirement is: the application should be always hidden and the systray icon
appears. When I right-click the systray icon, a menu appears that can let user to choose.

Does anyone have any ideas or suggestion?

Re: How to make an application to be minimized in taskbar tray? (Further Question) by Eric

Eric
Thu Sep 16 01:45:08 CDT 2004

Hello, Christopher!

To hide the _screen, include the line SREEN=OFF in your config.fpw file and
set _screen.visible = .F. in your application. Your main form has to be a
top level form.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: How to make an application to be minimized in taskbar tray? (Further Question) by Anand

Anand
Thu Sep 16 03:05:49 CDT 2004

Hi Christo,

1. Open notepad and type SCREEN = OFF and save it as 'config.fpw' with
quotes on the same path of your executable.
2. With the above command, the application will immediately close after it
opens. To overcome this problem, include, READ EVENTS in your main program
of the project after all the environment is setup i.e. at a point where you
have setup the initial environment and exactly where you are awaiting an
input from the user, issue this command.
3. When you want to quit from the application, issue a CLEAR EVENTS. It
will work perfectly.

Regards,

Anand.

"Christopher Panadol" <thfchristopher@hotmail.com> wrote in message
news:uaDKfk5mEHA.2372@TK2MSFTNGP10.phx.gbl...
> I have asked this question before. Thanks Eric and other guys of you that
provide the
> solution to achieve this. I have tried it and it really shows the icon in
the systray.
> But I have a question:
>
> I compile my project with this systray icon tool to an execution file. But
when I run it,
> the main Visual FoxPro is still appeared, although the systray icon has
been shown. I
> have included a command _screen.Hide. But the result will be the
application quits.
>
> I have found a DLL, systray.dll that can really hide Visual FoxPro window
the systray
> icon is appeared. But there is something that does not meet my
requirement: When I left
> or right click the systray icon, the Visual FoxPro screen is appeared.
>
> What my requirement is: the application should be always hidden and the
systray icon
> appears. When I right-click the systray icon, a menu appears that can let
user to choose.
>
> Does anyone have any ideas or suggestion?
>
>