如何用C#建一个托盘程序

wonderful_ecode 2009-05-20 05:31:53
如何用C#建一个托盘程序,小弟很菜,不要说的太笼统,最好建个实例把代码拷上去,谢谢了。
...全文
52 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wonderful_ecode 2009-05-20
  • 打赏
  • 举报
回复
谢谢老大。
zgke 2009-05-20
  • 打赏
  • 举报
回复
private NotifyIcon _NotifyIcon = new NotifyIcon();
private void Form1_Load(object sender, EventArgs e)
{
_NotifyIcon.Icon = this.Icon;
_NotifyIcon.Visible = true;
_NotifyIcon.Click += new EventHandler(_NotifyIcon_Click);


}

void _NotifyIcon_Click(object sender, EventArgs e)
{
this.Show();
}

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧