private void PopupForm_Load(object sender, EventArgs e) { this.label内容.Text = this.价格提示Row.Description; if (this.价格提示Row.提示等级 == (int)提示等级.黄) { this.BackColor = Color.Yellow; } else if (this.价格提示Row.提示等级 == (int)提示等级.红) { this.BackColor = Color.Red; } Tool.SetWindowPos(this.Handle, Tool.HWND_TOPMOST, this.x, this.y, this.Width, this.Height, Tool.SWP_NOACTIVATE); //设置弹出位置 Tool.AnimateWindow(this.Handle, 500, Tool.AW_BLEND); //动态显示本窗体 }
private void timer1_Tick(object sender, EventArgs e) { Tool.AnimateWindow(this.Handle, 500, Tool.AW_SLIDE + Tool.AW_VER_POSITIVE + Tool.AW_HIDE);//动画隐藏窗体 this.Close(); }