其实很简单,定义一个变量监控就好:
private void pictureBox1_MouseEnter(object sender, EventArgs e) { mousein = true; } private void pictureBox1_MouseLeave(object sender, EventArgs e) { mousein = false; }
其实很简单,定义一个变量监控就好:
private void pictureBox1_MouseEnter(object sender, EventArgs e) { mousein = true; } private void pictureBox1_MouseLeave(object sender, EventArgs e) { mousein = false; }