Reader Level:
Article

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.
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.

Chitkaran Singh

I am pursuing GNIIT. I have learned languages like HTML, XML, SQL, JAVA, C, C++, C# and other basic languages. I am looking forward for a career in Software Development and I am doing more than I could to achieve thi... Read more

COMMENT USING