Change image in picturebox every second C#

后端 未结 5 1529
一整个雨季
一整个雨季 2021-01-13 13:08

I\'m creating a WinForm application that takes a person\'s photo with a webcam and am trying to now create a countdown effect. I have 4 images that i would like to cycle thr

5条回答
  •  时光说笑
    2021-01-13 13:24

    You should use

     counter++;
     this.SuspendLayout();
     pbCountDown.Image = new Bitmap("c:/vrfid/apppics/" + counter + ".jpg");
     this.ResumeLayout();
    

    I tested it and it was working, hope it helps you

提交回复
热议问题