Home > Net >  In c # image picturebox control how to change back?
In c # image picturebox control how to change back?

Time:10-08

Private void pictureBox1_MouseLeave (object sender, EventArgs e)
{
This. PictureBox1. Image=Image. FromFile (@ "H: \ \ Kugou \ \ 2. PNG");
}
This is a code, after running up the mouse will transform images, but change not to return the original images, strives for the great god answers, beginners

CodePudding user response:

After the mouse to move the picture turned back

CodePudding user response:

Has been resolved, the MouseLeave event to reload the original image
  •  Tags:  
  • C#
  • Related