在C#创建气球提示 [英] Creating balloon tooltip in C#

查看:219
本文介绍了在C#创建气球提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以知道我怎样才能使一个弹出气泡消息在我的应用程序codeD在C#。

Can i know how can i make a popup bubble message in my application coded in C#.

像例如,当我开始我的应用程序,它会弹出说:欢迎来到UbuntuSE应用。

Like example, when i start my application, it'll popup saying "Welcome to UbuntuSE App".

和肯定,弹出是不是消息框弹出,它在traymenu弹出。

And yea, The popup is not the message box popup, it's the popup in the traymenu.

也有类似这样:

PS, 如果我没看错,这就是所谓的气球工具提示。但是,我怎么能利用这个在我的codeS。

PS, If i'm not wrong, this is called Balloon Tooltips. But how can i use this in my codes.

推荐答案

如果你使用的WinForms你的的的NotifyIcon 类。这个对象有,它会显示一个气球尖端 ShowBalloonTip 方式:

If you're using Winforms you have the NotifyIcon class. This object has a ShowBalloonTip method which will show a balloon tip:

var icon = new NotifyIcon();
icon.ShowBalloonTip(1000, "Balloon title", "Balloon text", ToolTipIcon.None)

这篇关于在C#创建气球提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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