Esempio n. 1
0
        private void UserControl1_MouseEnter(object sender, EventArgs e)
        {
            UserControl1 userControl1 = sender as UserControl1;

            userControl1.BackColor = System.Drawing.Color.Gray;
        }
Esempio n. 2
0
        private void UserControl1_MouseLeave(object sender, EventArgs e)
        {
            UserControl1 userControl1 = sender as UserControl1;

            userControl1.BackColor = System.Drawing.Color.White;
        }