C#怎样才能实现窗体最小化到托盘呢?
发布时间:2016-12-28 来源:查字典编辑
摘要:privatevoidForm1_Resize(objectsender,System.EventArgse){if(this.Window...
privatevoidForm1_Resize(objectsender,System.EventArgse){
if(this.WindowState==FormWindowState.Minimized){
this.Visible=false;
this.notifyIcon1.Visible=true;
}
}
privatevoidnotifyIcon1_Click(objectsender,System.EventArgse){
this.Visible=true;
this.WindowState=FormWindowState.Normal;
this.notifyIcon1.Visible=false;
}