
请教如何让Winform程序在任务栏恢复的时候
展开全部
窗体上添加一个NotifyIcon空间 ,当窗体最小化时if(this.WindowState==FormWindowState.Normal&&this.Visible==true)
{
this.notifyIcon1.Visible=true;
this.WindowState=FormWindowState.Minimized;
this.Visible=false;
this.ShowInTaskbar=false;
}
{
this.notifyIcon1.Visible=true;
this.WindowState=FormWindowState.Minimized;
this.Visible=false;
this.ShowInTaskbar=false;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询