首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Windows任务栏中隐藏应用程序窗体?

如何在Windows任务栏中隐藏应用程序窗体?
EN

Stack Overflow用户
提问于 2011-03-07 15:44:26
回答 1查看 48.2K关注 0票数 25

如何在Windows任务栏中隐藏应用程序的名称,即使它是可见的?

目前,我有以下代码来初始化和设置我的表单的属性:

代码语言:javascript
复制
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);
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-03-07 15:48:31

若要防止窗体出现在任务栏中,请将其 property设置为False。

代码语言:javascript
复制
this.ShowInTaskbar = false;
票数 61
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5217108

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档