开发者

How can I hide my application's form in the Windows Taskbar? [duplicate]

This question already has answers here: Hiding winforms app from taskbar (2 answers) Closed 6 years ago.

How can I hide the name of my application in the Windows Taskbar, even when it is visible?

Currently, I have the following code to initialize and set the properties of my form:

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开发者_如何学Go.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);


To prevent your form from appearing in the taskbar, set its ShowInTaskbar property to False.

this.ShowInTaskbar = false;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜