Add a taskbar tray in C#
C# provides the NotifyIcon in task bar as a component. Here is some event it has to handle:
private void FormMain_Resize(object sender, System.EventArgs e)
{
if (FormWindowState.Minimized == WindowState) Hide();
}
private void notifyIconTask_DoubleClick(object sender, System.EventArgs e)
{
Show();
WindowState = FormWindowState.Normal;
}
private void FormMain_Resize(object sender, System.EventArgs e)
{
if (FormWindowState.Minimized == WindowState) Hide();
}
private void notifyIconTask_DoubleClick(object sender, System.EventArgs e)
{
Show();
WindowState = FormWindowState.Normal;
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home