110,578
社区成员
发帖
与我相关
我的任务
分享
this.notifyIcon1.Visible = true;
this.notifyIcon1.ShowBalloonTip(1000, "标题","内容", ToolTipIcon.Error);
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
{
this.notifyIcon1.Visible = true;
this.ShowInTaskbar = false;
e.Cancel = true;
this.Hide();
notifyIcon1.Text = "ABC" + "\r\n";
notifyIcon1.BalloonTipTitle = "ABC系统";
notifyIcon1.BalloonTipText = "程序最小化,仍继续运行......" + "\r\n" + "双击托盘图标还原窗口.";
notifyIcon1.ShowBalloonTip(1000);//消失时间
}
}