c# - 如何在程序后台运行时显示通知?

标签 c# notifications

我想用 C# 编写一个 Windows 应用程序,但我不知道如何在屏幕一角或通知区域显示弹出窗口,或以任何其他方式通知用户。

非常感谢。

最佳答案

使用NotifyIcon组件的ShowBalloonTip方法。在设计器中将 NotifyIcon 添加到您的表单,为其命名,然后在要显示通知的位置调用 myNotifyIcon.ShowBalloonTip

关于c# - 如何在程序后台运行时显示通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8281924/

相关文章:

c# - 在 System.Web.Http 包中找不到 RouteAttribute

c# - 如何匹配区分大小写的用户名和密码

Android:从通知栏中删除通知

android - 如何像提醒一样显示通知?

ios - 从后台发送 UILocationNotification

android - 如何自定义平视通知布局?

c# - 虚拟属性和延迟加载

c# - RDotNet.dll 中发生类型为 'System.StackOverflowException' 的未处理异常

c# - 为什么我无法使用带有官方 Binance REST API 的 c# 进行 Binance 订单?

session - 当绑定(bind)/未绑定(bind)到 HTTP session 时获取通知