如图,就一个Form 和 一个picturebox, Form背景红色,picturebox 背景透明,然后只写了两个事件如下,
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
pictureBox1.Invalidate();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
MessageBox.Show("AAA");
}
为什么鼠标经过picturebox 时Form重绘了???