AnimateWindow (user32)
Last changed: -73.81.7.241

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool AnimateWindow(HWND hwnd, UINT dwTime, UINT dwFlags);

Or,

[DllImport("user32")]
static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags)

User-Defined Types:

AnimateWindowFlags can be used for the dwFlags parameter.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

This assumes that the AnimateWindow function is declared inside class User32

Form2 f2 = new Form2();
User32.AnimateWindow( f2.Handle, 1000, AnimateWindowFlags.AW_VER_NEGATIVE |
                AnimateWindowFlags.AW_SLIDE );
f2.Show();

Alternative Managed API:

Do you know one? Please contribute it!

Documentation