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);
對我來說聽起來很詭異:) –
您的應用程序是否顯示在任務欄中,並且您希望它隱藏?或者您的應用程序應該可見但不顯示在任務欄中?確切的問題是什麼? –
問題不清楚。請重新說明。 –