private void button6_Click(object sender, EventArgs e) { bool result = Win32API.AnimateWindow(this.Handle, 2000, AnimateWndFlags.AW_BLEND | AnimateWndFlags.AW_HIDE); Console.WriteLine(result); }