通过设置窗体ShowInTaskbar属性,设置窗体在任务栏的显示和隐藏
private void zrdoshow_CheckedChanged(object sender, EventArgs e)
{
this.ShowInTaskbar = true;
}
private void zrdohide_CheckedChanged(object sender, EventArgs e)
{
this.ShowInTaskbar = false;
}
效果如下: