Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Apps

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2010, 06:40 AM
sibad_sh sibad_sh is offline
Junior Member
 
Join Date: Aug 2010
Posts: 3
Exclamation how to set trayicon visible in a service app in win7 ?

In xp/2003, when the service app starts, the trayicon will be visible, however in win7, the same application, the trayicon is missing, could you tell me how to solve the problem, thank you very much!
Reply With Quote
  #2  
Old 11-09-2010, 08:39 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,333
Default

Yesterday my car started, however this morning it didn't... The same car, but it doesn't spark when I try to start...
Could you tell me how to solve the problem?

If you can, then I can help you solve yours...

You probably think that my question is weird, but it's the same question you ask... There isn't any mechanic that can solve my issue with the information I give him... But you expect us to solve yours with the same information I give to my mechanic...
Reply With Quote
  #3  
Old 11-09-2010, 08:57 AM
toby702 toby702 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 1
Default

If you can, then I can help you solve yours...
__________________
electronic components
IC electronic components
electronic components trading
Reply With Quote
  #4  
Old 11-09-2010, 02:16 PM
sibad_sh sibad_sh is offline
Junior Member
 
Join Date: Aug 2010
Posts: 3
Default

Sorry for my unclear description! Thanks for your enthusiasm.

I used the official sample "DelphiXX\source\Win32\db\ScktSrvr.dpr"
Delphi 2007

the demo could describe the problem.

In XP, the trayicon is correct; however in win7 it doesn't work.
Reply With Quote
  #5  
Old 01-15-2011, 01:32 PM
vcldeveloper vcldeveloper is offline
Member
 
Join Date: Jan 2011
Location: Iran
Posts: 80
Default

You should not run user interface stuff in a Windows service. It is not recommended. In Windows 7 you don't see such a tray icon because windows 7 runs services in a different session.

If you want to have graphical interface, divide your application into to parts:
1- Windows Service.
2- Service Manager.

Your service manager can be a simple GUI application which communicates with your Windows service, using one of the available IPC methods (e.g. Pipes). Your Windows service won't interact with the user directly. It will communicate with your service manager app using IPC or if it needs to log something (e.g. an error message) it uses Windows Events Viewer.
Reply With Quote
  #6  
Old 01-18-2011, 01:20 AM
mdixon7610 mdixon7610 is offline
Senior Member
 
Join Date: Sep 2003
Posts: 141
Default

Is it missing, or is it just hidden by default as are all other notification icons? In other words, if you click the arrow does it show in the customize window?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.