【发布时间】:2012-02-10 17:44:12
【问题描述】:
我正在编写一个透明的 WinForms 应用程序,我想隐藏该应用程序,使其不显示在任务管理器的应用程序选项卡中。我对它会在流程中显示的事实感到满意(事实上它应该)。 如果我设置:
this.ShowInTaskbar = false;
它只从任务栏隐藏。
我有完整的代码,我有一个由标签制成的计时器
public Form1()
{
InitializeComponent();
this.BackColor = Color.LimeGreen;
this.TransparencyKey = Color.LimeGreen;
Timer time = new Timer();
time.Interval = 1000;
time.Tick += new EventHandler(time_Tick);
time.Start();
this.ShowInTaskbar = false;
}
void time_Tick(object sender, EventArgs e)
{
label1_hour.Text = DateTime.Now.Hour.ToString() ;
label_minute.Text = DateTime.Now.Minute.ToString();
label_second.Text = DateTime.Now.Second.ToString();
}
【问题讨论】:
-
是的,这是一种方法.. 你能在你有 this.ShowInTaskBar = false 的地方显示完整的代码;
标签: c# .net winforms taskmanager