本文介绍了如何在C#中创建Nofity图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 如何创建一个在通知区域中有图标的程序? 我想在C#中执行此操作。 谢谢!How can I create a program that will have an icon in the notification area?I would like to do this in C#.Thank you!推荐答案 private void frmNotifyArea_Load(object sender, EventArgs e) { myNotifyIcon.BalloonTipText = "Inside the PopUp"; myNotifyIcon.BalloonTipTitle = "Popup Title"; myNotifyIcon.ShowBalloonTip(1000); WindowState = FormWindowState.Minimized; ShowInTaskbar = false; } 和Resize事件: And the Resize event:private void frmNotifyArea_Resize(object sender, EventArgs e) { if (WindowState == FormWindowState.Minimized) { Hide(); } } 最后是NotifyIcon.MouseDoubleClick事件: And finally the NotifyIcon.MouseDoubleClick event:private void myNotifyIcon_MouseDoubleClick(object sender, MouseEventArgs e) { WindowState = FormWindowState.Normal; Show(); } 这篇关于如何在C#中创建Nofity图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-03 04:46