[System.Runtime.InteropServices.DllImportAttribute("user32.dll")]
public static extern bool FlashWindow(IntPtr handle, bool bInvert);
private void button1_Click(object sender, EventArgs e)
{
FlashWindow(this.Handle, true); //启用窗体闪烁函数
}