本文实例讲述了C#实现由四周向中心缩小的窗体退出特效。分享给大家供大家参考。具体实现方法如下: public const Int32 AW_CENTER = 0x00000010; public const Int32 AW_HIDE = 0x00010000; [DllImport(user32.dll,CharSet=CharSet.Auto)] public static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); Form_Closing调用:(同时使用AW_CENTER和AW_HIDE标识)