Iwan Cahyadi Sugeng wrote:
> I have a server application using TRemoteDataModule, and I use tray icon for
> this server application.
> So everytime user connect, the tray icon will appear as the server
> application is running.
I don't understand. The user is connecting with the client. Why put the
server's icon anywhere? The user isn't at the server to see the icon
anyway, right?
> But when the explorer.exe file is killed from the windows task manager and
> then run the explorer.exe again the tray icon is not redisplayed.
Why is Explorer running on your server computer? Nobody should need to
be logged in at the server.
Why are you killing Explorer? Is it to simulate crashing? If Explorer is
crashing, then you have an unstable server and you should fix that.
> How can I make my icon reappear on explorer.exe restart?other icon can do
> that, like outlook or opera for example.
Call RegisterWindowMessage('TaskbarCreated'), and then have your program
listen for that window message (in Application.OnMessage, for instance).
When you get that message, re-create your notification icon.
> Also when any user connect to the application server, while nobody has login
> to the server computer, then when someone logon the computer, the icon is
> not appeared
Are you saying that the first person to log in doesn't get a
notification icon, but everyone after that does?
--
Rob