17
如何隐藏我的应用程序在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);
对我来说听起来很诡异:) –
您的应用程序是否显示在任务栏中,并且您希望它隐藏?或者您的应用程序应该可见但不显示在任务栏中?确切的问题是什么? –
问题不清楚。请重新说明。 –