Reader Level:
ARTICLE

Minimize a Form to System Tray

On November 30, 2007 Articles | How do I
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
  • 48982
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 ...

  • 478rank
  • 246K readers
COMMENT USING

Trending up