Hello,
i would like to know how to stop, start and restart services?
Thanks!!
How to stop, start and restart service?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 14, 2011, 11:56 AM EDT
Check out this link:
http://www.csharp-examples.net/restart-windows-service/
s44 reputationPosted Aug 14, 2011, 12:03 PM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 14, 2011, 1:12 PM EDT
Before attempting to stop a service programatically, you can also check the ServiceController.CanStop properly to see whether it's stoppable.