C# 抖动一下窗体

来源:互联网 发布:天津搜索引擎优化 编辑:程序博客网 时间:2024/06/11 06:25
        [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);    //启用窗体闪烁函数        }

0 0
原创粉丝点击