private void customPictureBoxbutton_MouseHover(object sender, EventArgs e) { CustomPictureBoxButton customPictureBox = sender as CustomPictureBoxButton; customPictureBox.Image = customPictureBox.m_HoverImage; }
private void CustomPictureBoxbutton_MouseLeave(object sender, EventArgs e) { CustomPictureBoxButton customPictureBox = sender as CustomPictureBoxButton; customPictureBox.Image = customPictureBox.m_NormalImage; }