Winform after receiving the message, I do will pop up a input window, show the picture, lets the user input the verification code on the picture,
AutoIt. FrmCheckCode form2=new AutoIt. FrmCheckCode ();
Form2. GetPicture (" ABC. JPG ");
Form2. ShowDialog ();
MsgBox (form2. TxtCheckCode. Text + "!" , 1);
Form2. The Dispose ();
GetPicture code:
Public void GetPicture (string FileName)
{
PictureBox1. Image=Image. FromFile (FileName);
This. Width=pictureBox1. Image. Width + 16;
This. Height=pictureBox1. Image. Height + 75;
}
Messages are received for the first time, the pop-up window, can normal display images, but the second time, third time window pops up, display the image is still the first, but in fact the JPG this picture has changed, and research for a long time, I don't know what circumstance?
CodePudding user response:
PictureBox1. Refresh () and have a lookCodePudding user response: