简体   繁体   English

C#-托盘通知窗口

[英]C# - Tray Notification Windows

有人可以为我提供正确的方向,例如“托盘通知窗口”,类似于以下示例:

Do you use Winforms? 您使用Winforms吗? If so use a standard form without border ( FormBorderStyle None ) and draw it yourself. 如果是这样,请使用无边框的标准表单( FormBorderStyle None )并自己绘制。

There's a simple interface to the notification tray called NotifyIcon in WinForms. WinForms中的通知托盘有一个简单的界面,称为NotifyIcon。

Once you can grab its events (Clicked, DoubleClicked, etc.) you can pick whether you want to show a context-menu or a form. 抓住其事件(Clicked,DoubleClicked等)后,您可以选择是要显示上下文菜单还是表单。

As noted by schlingel, in the example you provided is a custom form without a window border, drawn right next to the notification tray. 正如schlingel所指出的,在示例中,您提供的是一个自定义表单,没有窗口边框,显示在通知托盘旁边。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM