开发者

A windows service application controlled by desktop application?

开发者 https://www.devze.com 2023-01-17 16:46 出处:网络
I created a windows service in C# 开发者_如何学JAVAwhere I can start , stop, restart. Is there anyway of creating a simple desktop application to control it.

I created a windows service in C# 开发者_如何学JAVAwhere I can start , stop, restart.

Is there anyway of creating a simple desktop application to control it.

example: button to start service button to stop.


Please have a look at this article. It explains how to stop/start/restart a service in a nice manner.

All you then need to do is create a new WinForms/WPF Application, add 3 buttons (style as you like) and assign those methods to the click events of the buttons.

Easy as pie, let me know if you need more info.


You can create a windows application and can add that exe to the schedule task (in control panel). There you can schedule the time. Also you can manually start and stop there

0

精彩评论

暂无评论...
验证码 换一张
取 消