Reader Level:

Minimize a Form to System Tray

Posted by Chitkaran Singh Articles | How do I November 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.
  • 0
  • 0
  • 48430
Download Files:

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.


Trending up