我有这个NotifyIcon
:刷新NotifyIcon的消息
private System.Windows.Forms.NotifyIcon notifyIcon;
private void CreateNotifyIcon()
{
notifyIcon = new System.Windows.Forms.NotifyIcon();
notifyIcon.Icon = myIcon;
notifyIcon.Visible = true;
notifyIcon.Text = "My app";
notifyIcon.MouseClick += notifyIcon_MouseClick;
}
所以,在我的应用我有ProgressBar
,我想表明这是Value
insode我NotifyIcon
:
void notifyIcon_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
{
int val = progressBar.Value;
notifyIcon.ShowBalloonTip(2000, "Hi", val.ToString(), System.Windows.Forms.ToolTipIcon.Info);
}
那么,这可能显示此Value
之后每次更改数值Click
我的NotifyIcon
一次又一次? (只需将鼠标悬停在NotifyIcon
上并查看数值变化)
你能给我UI的一些其他形式做将这个? –
您可以使用许多不同的选项。我不确定我想推荐一个不知道程序的细节。我只是想回答你问的问题。你问*所以是否有可能显示这个值后,每改变一次没有点击我的NotifyIcon一次又一次?* –
我有进度条,我想显示在气球消息和另外几个简单的字符串 –