I click on the picturebox and the image is loaded into it, then I click on another picturebox and if they are the same, they disappear. I wrote a program, but I don’t show the second picture and the player doesn’t see which picture is opened. Thread.Sleep(100); Does not help.

  • the simplest (I don’t say the right one) - when you click on a picture, show it and start the timer. But in the timer handler already check and delete pictures. - KoVadim

1 answer 1

Thread.Sleep(100); - does not help, because here 100 is 100 ms, i.e. 1/10 of a second. Increase this value, the stop will be more.