如何在c#中创建一个将在用户Pc中弹出通知消息的应用程序。 [英] How to create an app in c# that will popup a notification message in users Pc.

查看:79
本文介绍了如何在c#中创建一个将在用户Pc中弹出通知消息的应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个应该作为Windows服务应用程序安装在用户计算机上的应用程序,并且应该在用户PC上弹出通知消息,就像任务栏上的Windows弹出消息一样。这样做的原因是我们公司有几个用户,很多时候我们需要通知用户一些东西。该通知应由系统自动完成。所以我打算创建一个数据库,我们可以在其中输入消息,这个应用程序将读取它并显示在用户屏幕中。是否有人创建了这样的应用程序,任何帮助都表示赞赏。

I want to create an app that should be installed on users computer as a windows service app and should popup a notification message on users PC just like the windows popup messages at the task bar. The reason for this is that we have several users in the company and many a time we need to notify the users something. This notification should be done automatically by the system. So I am planning to create a database where we can enter the messages and this app will read it and display in the users screen. Is anyone have created such an app, any help is appreciated.

推荐答案

您根本不需要Windows服务应用程序。他们无法访问用户桌面,因此无法向用户显示消息框。



您只需要一个普通的Windows窗体或WPF应用程序并从Run键启动它,每次用户登录时都会启动应用程序。该应用程序可以侦听来自您的服务器应用程序的消息,这些消息会推送通知并显示它们。



这基本上是一个聊天应用程序。网上有很多例子。您需要做的就是搜索c#chat。
You don't need a Windows Service app at all. They can't access the users desktop so it's not going to be able to show a message box to the user.

All you need is a normal Windows Forms or WPF app and launch it from the Run key, which will launch the application every time a user logs on. The app can listen for messages from your server application that pushes notifications and display them however you want.

This is basically a chat application. There's tons of examples on the web. All you need to do is search for "c# chat".


这篇关于如何在c#中创建一个将在用户Pc中弹出通知消息的应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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