[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)
AnimateWindowFlags can be used for the dwFlags parameter.
None.
Please add some!
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();
Do you know one? Please contribute it!