private void UserControl1_MouseEnter(object sender, EventArgs e) { UserControl1 userControl1 = sender as UserControl1; userControl1.BackColor = System.Drawing.Color.Gray; }
private void UserControl1_MouseLeave(object sender, EventArgs e) { UserControl1 userControl1 = sender as UserControl1; userControl1.BackColor = System.Drawing.Color.White; }