---
title: "How to minimize form in Taskbar Using NotifyIcon in C#.NET"  
description: "In this Article, I will tell you guys, how to minimize the form in Taskbar Using NotifyIcon in Windows Forms using C#.NET:"  
author: "mohan kumar"  
published: 2012-06-15  
updated: 2020-07-14  
canonical: https://www.mindstick.com/articles/948/how-to-minimize-form-in-taskbar-using-notifyicon-in-c-sharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to minimize form in Taskbar Using NotifyIcon in C#.NET

In this article, I will tell you guys, how to minimize the form in [Taskbar Using NotifyIcon](https://www.mindstick.com/Articles/279/ajax-toolkit-roundedcornersextender-control-in-asp-dot-net) in Windows Forms using C#.NET:\

##### To minimize windows form to the system tray, follow these steps.

1. Create your new C# project.\
2. From the toolbox, drag the NotifyIcon to your form.\
3. On your Form_Load event, copy and paste the following code:

```
private void Form1_Load(object sender, EventArgs e)  {  notifyIcon1.BalloonTipText = "This application was minimized to tray";  notifyIcon1.BalloonTipTitle = "My Sample Application";     //Display the Notify Baloon for 1 second  notifyIcon1.ShowBalloonTip(1000);     //Set the WindowState in Minimized Mode  WindowState = FormWindowState.Minimized;  }   Then on Form_Resize event, add this code.    private void Form1_Resize(object sender, EventArgs e)      {  //On minimize mode, show the form in System Tray only          if (FormWindowState.Minimized == WindowState)          {              Hide();          }      }  Now to restore the form upon double-click on NotifyIcon control.    private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)      {  //Display the Form in normal state          WindowState = FormWindowState.Normal;          Show();      }    
```

\

---

Original Source: https://www.mindstick.com/articles/948/how-to-minimize-form-in-taskbar-using-notifyicon-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
