Пример #1
0
 //窗体关闭时
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     //先关闭阴影窗体
     if (skin != null)
     {
         skin.Close();
     }
     //在Form_FormClosing中添加代码实现窗体的淡出
     Win32.AnimateWindow(this.Handle, 150, Win32.AW_BLEND | Win32.AW_HIDE);
 }