在c#中 修改winform的哪一个属性使其运行时在任务栏显示图标

如题 写了一个小程序 但是不知道改了form的什么属性 现在可以正常运行但是在任务栏就是没有图标框 只能在任务管理器里找 好不方便啊。。。
不是 showintaskbar 不是 showintaskbar 不是 showintaskbar
重要的事情说三遍

窗体上添加一个NotifyIcon空间 ,当窗体最小化时if(this.WindowState==FormWindowState.Normal&&this.Visible==true)
{
this.notifyIcon1.Visible=true;
this.WindowState=FormWindowState.Minimized;
this.Visible=false;
this.ShowInTaskbar=false;
}
温馨提示:答案为网友推荐,仅供参考
相似回答