Is it possible to clean the PictureBox, and, if so, how it is made. With the image loading everything is more or less clear:

pictureBox1.Image = Image.FromFile("C:\\Users/Daniil_2/Desktop/car2.png"); 

But how to clean the PictureBox? Do not insert a clean white drawing there, namely clear?

    1 answer 1

    Try this:

     pictureBox1.Image = null; 

    If suddenly it does not work, then there is such an option:

     pictureBox1.InitialImage = null; 

    Alternative way:

     if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } 
    • On another issue, everything is better to discuss there in the comments. - BlackWitcher