示例#1
0
        private void UserControl1_MouseEnter(object sender, EventArgs e)
        {
            UserControl1 userControl1 = sender as UserControl1;

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

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