Disabling Minimize Animation?
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?
Re: Disabling Minimize Animation?
Why not just Show the form, and Hide the form, instead of changing the WindowState ¿
Re: Disabling Minimize Animation?
Quote:
Originally Posted by HanneSThEGreaT
Why not just Show the form, and Hide the form, instead of changing the WindowState ¿
Guess I was trying to use the standard "Control Box" (minimize, maximixe, close) options, but see that at least some of my tray apps don't do it this way, but instead have a separate OK/Close button where they must be doing it as you suggest.
Good idea... .thanks