Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.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); 
like image 979
Farna Avatar asked Mar 07 '11 07:03

Farna


People also ask

How do I hide AnyDesk from taskbar?

With AnyDesk Privacy Mode, you can simply disable the screen of the remote device by turning it black while you remotely access it. Here's how it works: First, set a password for Unattended Access in the security settings on the incoming side and allow Privacy Mode by ticking the corresponding box.

How do I hide programs from the taskbar in Windows 7?

To the right of the pinned programs on the taskbar, appears a section which, on hovering your mouse pointer over it, displays “firefox.exe – Shortcut”. You have just created a secret invisible icon in your Windows 7 taskbar. Drag this section to the extreme left of the taskbar to the right of the “Start” button.


1 Answers

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

this.ShowInTaskbar = false; 
like image 158
Cody Gray Avatar answered Sep 28 '22 05:09

Cody Gray