Alan,
Let's try to clear up the terminology.
There are currently four icons displayed to the left of the clock with an '<' that expands the list of icons to the left. (There are about 19 icons when '<' is clicked.)
That is the
notification areas.
Processes that windows percieves as running 'applications' are listed from left to right, starting about two inches from the 'Start' logo on the left of the screen.
That's the
taskbar.
Now, turning to your application ....
With the vast majority of VFP applications, you will see a
button in the taskbar. It shows an icon, with the name of the application to its right. Clicking that button will restore the application (if it's minimised) or bring it to the front.
You don't have to do anything special to create that button. It will just appear when the application starts.
The icon in that button is the same as the one you see in the title bar of the main (outer) window in the application. By default, it's a fox head. By setting _SCREEN.Icon in your code (or setting it in the Icon box in the property sheet for the screen), you can change it to any icon you like.
When you do that, VFP doesn't do any error checking. If the icon file does not exist, or VFP cannot find it, it will just ignore it and display the fox head instead.
Now, running an application from the notification area is a totally different concept. I would stress that
this is not something that most developers do. You normally only do it if you want to run your app as some sort of background service, and then only if you want to give the user a way of communicating with that service.
If that's what you want, you need to stay with Dave. He has given you more information that I can. I'd only add that _SCREEN.Icon has no effect on apps running in the notification area, so if that's the route you're taking, don't get bogged down with that issue.
I hope this clarifies things.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk