Click here to Skip to main content
16,018,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,


I have created Windows Services and also other windows forms my actual task is to Open an .exe (Windows Forms) automatically Whenever Windows Services Starts.I'm using Windows 7 OS..


Thanks in Advance
Posted

Beyond the information given in solution 1, also note that a Windows Service MUST NOT interact directly with a user session. With Windows 7, that is a strict rule, called "session 0 isolation" (different from XP where it was still possible with some settings - though already discouraged). Consequently, that program with a GUI would be visible to nobody at all.
When a logged in user wants to interact with a service, some other technologies like .Net Remoting, WCF, etc. can be used.
 
Share this answer
 
This sounds like a "cart before the horse" problem. Windows Services start when the machine boots, and before any user logs in. If you have a program that has a UI, you pretty much need a user logged in with an active desktop to display the program UI.

There are reasonable exceptions to this but your description is not complete and likely can't be done.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900