C#怎样才能实现窗体最小化到托盘呢?
人气:0想了解C#怎样才能实现窗体最小化到托盘呢?的相关内容吗,在本文为您仔细讲解的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:C#怎样才能实现窗体最小化到托盘呢?,下面大家一起来学习吧。
private void Form1_Resize(object sender, System.EventArgs e) { if (this.WindowState == FormWindowState.Minimized) {
this.Visible = false;
this.notifyIcon1.Visible = true;
}
}
private void notifyIcon1_Click(object sender, System.EventArgs e) {
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}
加载全部内容