c# - How to reset an image to default in Windows Form -


I have created a photo box in my windows form. I set it to a special image in the Properties section. I have then coded a method that changes the image based on criteria.

Have you tried just changing it to the default image within your code?

  pictureBoxName.BackgroundImage = yourDefaultImage;   

Currently, create a new zero method and whenever you want to reset it to the default, call it:

  public static zero setizetationToday () {PictureBoxName background image = yourDefaultImage; }   

Then call for method setImageToDefault ();

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -