.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to start window service automatically

Posted By: Suma     Posted Date: April 08, 2009    Points:2   Category :C#
Hi,
How to start window service automatically when operating system starts?

Please help me i am using C# as my code language.

Thanks in Advance

Responses
Author: Vuyiswa Maseko             
Posted Date: April 15, 2009     Points: 5   

Good Morning Suma

After you have installed your Windows Service, it will appear in the Services list that can be viewed in

Start --> Control Panel -->Administrators Tools -->Services (Win XP)

If you can see your Service after you install it, Follow the Simple Steps

1)Right Click on your Service and go to Properties
2)Under the General Tab , there Is an Option "Start up Type" Using the Drop Downlist Select "Automatic"

This means that when you start your Computer the Service will Run.

Hope this Helps

Vuyiswa Maseko

Author: Suma             
Posted Date: April 16, 2009     Points: 5   

Thanks Vuyiswa..for your reply..but is there any way we can do it pragmatically. Means can we make Start up pragmatically so when window start it will automatically start without manual intervention?

Thanks
Suma

Author: jay             
Posted Date: February 19, 2010     Points: 5   

on desktop left bottom corner right click on windows start button than
open-->programs--->startup in that startup paste the shortcut of C#.

Author: Vuyiswa Maseko             
Posted Date: February 22, 2010     Points: 5   

Good Day Suma

It is easy it can be Started.

look at this

http://msdn.microsoft.com/en-us/library/76477d2t.aspx




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend