|
-
November 13th, 2007, 10:01 PM
#1
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?
C# - Visual Studio 2005
Frameworks 2.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|