Notifications in winforms
<p>I want to know how can I show notifications in the windows form applications automatically.</p>

<p>my code here:</p>

<pre><code>cn.Open();
SqlCommand cmd = new SqlCommand("select Count(*) from Issue where Return_Date &lt; @Date", cn);
cmd.Parameters.AddWithValue("@Date",DateTime.Now);
int NumberOfOverdue = (int)cmd.ExecuteScalar();
cn.Close();

if (NumberOfOverdue &gt; 0)
{
    notifyIcon1.ShowBalloonTip(500, "Library Management System", "There are " + NumberOfOverdue + " overdued book", ToolTipIcon.Warning);
}
</code></pre>

<p>The code is located int the <code>Form_Load</code> and obviously it only triggers after I start the program; but I want the notification to show right after the requirement in the if condition is met automatically.</p>