显示一个弹出窗口的Windows服务 [英] showing a popup form a windows service

查看:59
本文介绍了显示一个弹出窗口的Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关使用Windows服务创建的应用程序的一些建议。基本上,我们有一些时间表软件,我需要创建一个Windows服务,该服务将轮询数据库以查看它们是否已完成上周时间表。如果他们还没有完成,我希望应用程序弹出一条消息,指出它不完整,他们应该去完成它。

Im looking for some advice on an application im creating using a windows service. Basically we have some timesheet software and i need to create a windows service that will poll a db to see if they have completed last weeks timesheet. If they havent completed it i want the application to popup a message stating that it is incomplete and that they should go and complete it.

我已经从我发现的教程中创建了一个简单的服务,并使其安装和运行正常。我现在需要考虑弹出的表单方面。我不确定从服务中做到这一点是一个好主意。谁能指导我使用Windows服务开发此应用程序的最佳方法。

Ive created a simple service from a tutorial i found and got it to install and run fine. I now need to think about the form side that popups up. Thing is im not sure its a good idea to do this from a service. Can anyone give me a steer on the best way to develop this application using a windows service.

推荐答案

如前所述,您可能不会从服务内部创建用户界面。为了做到这一点。您必须构建另一个应用程序。您可以使用Windows窗体或WPF来构建NotificationArea集成应用程序。

as mentioned earlier you may not create userinterfaces from within Services. In order to achieve this. you have to build another application. you can use Windows Forms or WPF for building the NotificationArea inteagration application.

我将使用带有净tcp绑定的WCF在两个应用程序之间进行通信。

I would use WCF with net tcp binding to communicate between both applications.

这篇关于显示一个弹出窗口的Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆