如何在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); 

要防止表单出现在任务栏中,请将其ShowInTaskbar属性设置为False。

 this.ShowInTaskbar = false;