2011-03-07 9 views
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); 
+0

非常に怪しいですね:) –

+0

あなたのアプリはタスクバーに表示されていて、隠しておきたいですか?またはあなたのアプリは見えるが、タスクバーには表示されないはずですか?正確な質問は何ですか? –

+0

質問が不明です。それを言い換えてください。 –

答えて

43

FalseにそのShowInTaskbar propertyを設定します。

現在、私は自分のフォームのプロパティを初期化して設定するには、次のコードを持っています。

this.ShowInTaskbar = false; 
関連する問題