如何使notifyicon工作?

编程入门 行业动态 更新时间:2024-10-19 20:31:47
本文介绍了如何使notifyicon工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

hello codeproject。 i需要帮助让我的notifyicon工作,所以每次使用时我都会收到幻灯片信息但是当我试用它时.....我所有的get是任务栏中的图标,没有通知消息。 继承人我做了什么...

hello codeproject. i need help getting my notifyicon to work so everytime it used i get the slide message but when i try it..... all i get is a icon in taskbar and no notify message appears. heres what i have done...

private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.Show(); notifyIcon1.Visible = false; } private void notifyIcon1_BalloonTipClosed(object sender, EventArgs e) { notifyIcon1.Visible = false; }

并用此来拨打通知

and use this to call the notify

notifyIcon2.Visible = true; notifyIcon2.ShowBalloonTip(10);

谢谢希望你能提供帮助 我尝试过: 谷歌但找不到工作..

thanks hope you can help What I have tried: google but can not find a working one..

推荐答案

你错过了这些行。 You missed these lines. notifyIcon1.BalloonTipIcon = ToolTipIcon.Info; notifyIcon1.BalloonTipText = "I am a NotifyIcon Balloon"; notifyIcon1.BalloonTipTitle = "Welcome Message";

希望这可以帮到你。

Hope this helps you.

熟悉 NotifyIcon类(System.Windows.Forms) [ ^ ],试试这个例子,代码中缺少的一件事是NotifyIcon.ShowBalloonTip Method(Int32)(System.Windows.Forms) [ ^ ]。 Get familiar with the properties and methods of NotifyIcon Class (System.Windows.Forms)[^], try out the example, one thing missing in your code is NotifyIcon.ShowBalloonTip Method (Int32) (System.Windows.Forms)[^].

更多推荐

如何使notifyicon工作?

本文发布于:2023-11-25 15:28:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630303.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作   notifyicon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!