I'm developing an app that sits in the tray. When I double-click on the icon while it is in the tray, animation makes it appear as if the program was "asleep" just over the START button. When I minimize it, it animates back down towards the START button.

Most other similar tray applications that I have simply make the window appear and or disappear, and I would prefer mine to do that as well.

The code for each action is simply this:

// minimizing
private void Form1_Resize(object sender, EventArgs e)
{
if (FormWindowState.Minimized == WindowState)
Hide();
}

// restoring
private void mailBoxIcon_DoubleClick(object sender, EventArgs e)
{
Show();
WindowState = FormWindowState.Normal;
}


How can I cause my form to not go through the animation?