feat: 添加事件

This commit is contained in:
rainerosion 2023-01-12 02:56:28 +08:00
parent c1c3c9519d
commit 8b1a4f0d50
2 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,7 @@
this.closeBtn.Click += new System.EventHandler(this.pictureBox2_Click);
this.closeBtn.MouseLeave += new System.EventHandler(this.closeBtn_MouseLeave);
this.closeBtn.MouseHover += new System.EventHandler(this.closeBtn_MouseHover);
this.closeBtn.MouseMove += new System.Windows.Forms.MouseEventHandler(this.closeBtn_MouseMove);
//
// label1
//

View File

@ -99,5 +99,10 @@ namespace PlumByteUI_Learn
{
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
}
private void closeBtn_MouseMove(object sender, MouseEventArgs e)
{
closeBtn.BackColor = Color.Crimson;
}
}
}