Monday, October 1, 2018

Clear image on picturebox in C#

   private void btnRemove_Click(object sender, EventArgs e)
        {
            if (pictureEdit1.Image != null)
            {
                pictureEdit1.Image.Dispose();
                pictureEdit1.Image = null;
            }
        }

No comments:

Post a Comment