Bootstrap

C# 判断鼠标是否在picturebox上

其实很简单,定义一个变量监控就好:

private void pictureBox1_MouseEnter(object sender, EventArgs e) { mousein = true; } private void pictureBox1_MouseLeave(object sender, EventArgs e) { mousein = false; }

;