开发者

A windows service application controlled by desktop application?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜