using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; namespace demo { partial class UpdateFormMain { /// /// 窗体闪烁函数 /// /// /// /// [DllImport("user32.dll", EntryPoint = "FlashWindow")] public static extern bool FlashWindow(IntPtr handle, bool binvert); public UpdateFormMain(Form frmWindow, Control[] ctrl) { this.frmMain = frmWindow; this.ctrl = ctrl; ResizeWindowSize(); InitUI(this.ctrl); } private Form frmMain; private Control[] ctrl; } }