Windows タスクバーでアプリケーションのフォームを非表示にするにはどうすればいいですか? [重複] 質問する

Windows タスクバーでアプリケーションのフォームを非表示にするにはどうすればいいですか? [重複] 質問する

Windows タスクバーにアプリケーション名が表示されていても非表示にするにはどうすればよいでしょうか?

現在、フォームのプロパティを初期化して設定するための次のコードがあります。

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(0, 0);
this.Controls.Add(this.eventlogs);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Form1";
this.Text = "Form1";
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);

ベストアンサー1

フォームがタスクバーに表示されないようにするには、ShowInTaskbar財産False に。

this.ShowInTaskbar = false;

おすすめ記事