Click to See Complete Forum and Search --> : problems with tray
tolisss
Mar 14th, 2001, 01:08 PM
k i wrote an app that has a tray icon also the same app is running as an NT service .The problem is that when I try to run the app as a service I mean after I reboot the tray icon does not apper. I though that is because i create the tray icon in the load even of my exe and execute that event b4 the taskbar is created so i put a timer and I checked if explorer exe is running then create the icon but that didn't worked either .
Any ideas wich process is related with the taskbar or how can i find if the taskbar=explorer is running so I can create the tray icon after
Rh0ads
Mar 14th, 2001, 01:28 PM
i'm not too familiar with Win NT, so this might now work but.. Are you sure your app is loading when the system loads? Whenever i make my app load when the copmuter is booted, is using the win.ini filerun=C:\windows\app.exe
that's my 2 cents.
Ceri
Mar 15th, 2001, 06:37 AM
When you say an NT Service, do you mean that you used the RegisterServiceProcess API call. If that is the case, all this does his register you program as a service, i.e. something that runs in the background and that you cant see on the Task Manager menu (inivisible when you press Ctrl-Alt-Del). If you want the program to also start when windows starts, u must put the application in the Start up Services, or you can do it manually by editing the Registry and finding the RunServices Key
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.