为什么我的NotifyIcon显示出来? [英] Why isn't my NotifyIcon showing up?

查看:533
本文介绍了为什么我的NotifyIcon显示出来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让一个NotifyIcon的展现BalloonTip,但它不会显示出来,当我按下按钮

 私人无效的button1_Click(对象发件人,EventArgs五)
{
OsWatchNotify.Visible = TRUE;
OsWatchNotify.BalloonTipText =示例;
OsWatchNotify.BalloonTipTitle =例如称号;
OsWatchNotify.ShowBalloonTip(1);
}



任何和所有帮助将不胜感激。


解决方案

有没有那么多的方式来摸索将NotifyIcon。除了一个人,如果你忘了设置其图标属性,然后就再也不会出现。应该抛出一个异常,但被忽略了。

I'm trying to get a notifyIcon to show a BalloonTip, but it won't show up when I press the button

 private void button1_Click(object sender, EventArgs e)
 {                                    
       OsWatchNotify.Visible = true;
       OsWatchNotify.BalloonTipText = "Example";
       OsWatchNotify.BalloonTipTitle = "example title";
       OsWatchNotify.ShowBalloonTip(1);                          
 }

any and all help would be appreciated.

解决方案

There are not that many ways to fumble a NotifyIcon. Except one, if you forget to set its Icon property then it will never show up. Ought to raise an exception but that was overlooked.

这篇关于为什么我的NotifyIcon显示出来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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