窗户服务问题 [英] window service problem
本文介绍了窗户服务问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我这些天正在从事窗户服务.
我想要的是每当我在数据库表中添加任何数据时,都会弹出一个窗口,显示数据库中添加的最新条目.
但我不知道如何在窗口应用程序中使用服务.
谁能帮我.
预先感谢
neaS
hi all,
i am working on window service these day.
what i want is whenever i add any data in a database table, a window will pop up showing the newest entry added in the database.
but i dont know how to use service in a window application.
can anybody help me.
thanx in advance
neaS
推荐答案
不能在Windows服务中直接使用Windows窗体.
但是,您可以允许Windows窗体运行,例如在任务栏的通知"区域中,然后使它使用IPC
与服务进行通信.
A Windows Form cannot be used directly within a Windows Service.
You can however, allow a Windows Form to be running, say in the Notify area of the taskbar and then make it communicate with the service usingIPC
.
这篇关于窗户服务问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文