C#最小化应用程序到系统托盘的源码

在内容过程中,将内容过程中比较重要的一些内容段备份一次,下边资料是关于C#最小化应用程序到系统托盘的的内容,应该是对小伙伴们有一些帮助。
private void Form1_SizeChanged(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.Visible = false;
this.notifyIcon1.Visible = true;
}
}
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.Visible = true;
this.notifyIcon1.Visible = false;
this.WindowState = FormWindowState.Normal;

}




 

上一篇:CentOS7中 nginx 搭建 FastDFS 分布式文件存储系统


下一篇:@JsonFormat和@DataFormat注解解决前后端日期格式一致性问题