Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends,

Here i Developed one Windows Application that is if Modem Connected Through Notify Icon Modem Connected Sucessfuly Message will Come same like with Disconnected.I stared my Application through Program.cs file up to know this working fine.But my Problem is i want to convert my application to Windows Service because i dont want to start my application with Exe file.And it should run through Windows Service Only.So i dont know how to Manipulate and start my Windows application to windows Service.If any Information Regarding this please share with me.



Regards,

AnilKumar.D
Posted

1 solution

From your query I understood that you are using NotifyIcon in your windows application, this is not directly possible in windows service... you need to have windows and a system tray windows application, where the windows service will communicate to the system tray application to show the notify icon.

you can convert your windows application to service by adding an entry point and move your main logic to the onStart event.

please refer this urls for some more info. http://social.msdn.microsoft.com/Forums/en-US/clr/thread/d0fd133b-8954-42f2-ab46-f2d21c5d4550/[^]
http://vbnotebookfor.net/2007/08/14/how-to-convert-a-winforms-app-to-a-windows-service/[^]
http://www.dreamincode.net/forums/topic/174424-how-do-you-convert-a-console-application-to-a-windows-service-in-c%23/[^]
 
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