C#怎样才能实现窗体最小化到托盘呢?
下面请跟着图老师小编一起来了解下C#怎样才能实现窗体最小化到托盘呢?,精心挑选的内容希望大家喜欢,不要忘记点个赞哦!
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;
}


