Scroll To Top
Reader Level:
How do I

Minimize a Form to System Tray

By Chitkaran Singh on Nov 30, 2007
This article demonstrates the technique of minimizing the windows form to system tray and not display it in the task bar of the windows.

It is very easy to do this but needs a bit of imagination and skill. Here is the code snippet that does it all.

private void button1_Click(object sender, EventArgs e)


     if (minsys.Checked == true)


          this.Visible = false;


          this.WindowState = FormWindowState.Minimized;

This is the event handler of the minimize button.
Check the application and see how it works.