Thank you for this video, really well done! I'm in school for software development and this video expertly explains the steps needed to create a slideshow of images while using a timer. Thank you so much!
@notforyou3122 Жыл бұрын
He is not disposing the image which is causing a memory leak, this will lead to a memory overflow exception. Make sure you dispose the picturebox image before you update it.
@stairwayblue79474 жыл бұрын
You're a genius! Thank you so much!
@mmaranta7852 жыл бұрын
Great tip about hitting Tab for if statements
@tempname40393 жыл бұрын
Very clear and useful - thanks.
@dr.jagdishthacker60853 жыл бұрын
very nice Thanks a lot
@eugenesmirnov8064 ай бұрын
How do you stop a timer?Everything I tried does not stop it.
@MrHVids3 ай бұрын
See 3:25 Timers have an enable property. If you set Timer1.enabled=False then the timer will stop
@holaquetal04114 жыл бұрын
thank you so much for the video.
@oleksandrkravets37572 жыл бұрын
Hello, this is interesting. I wonder why the Memory increases while the program is running?
@MrHVids2 жыл бұрын
Add if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } at the start of the code to stop the memory leak
@karolinabadzioch17883 жыл бұрын
Can you help me? I did everything like you on this video and I think that my code is correct, but I have an error: An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll. I don't know what should I do in this situation :(
@tirolocomcleod4 жыл бұрын
How would I make the program loop only 3 times and then stop?
@UHYBE Жыл бұрын
Just Click the picturbox and set image to zoom
@nefgeu2 жыл бұрын
Whats happening with the process memory there?
@kimberlysg73744 жыл бұрын
Me estas salvando el parcial :)
@hostname474 жыл бұрын
Thanks dude !
@fatimaiqra21692 жыл бұрын
thanks a lot!
@vechl2 жыл бұрын
Thank you so much
@mathteacher26513 жыл бұрын
Thank you.
@studio.teiba14 жыл бұрын
How would i stop it from looping? So it only goes through the list once?
@MrHVids4 жыл бұрын
Line 26 - Instead of setting the intImgNum back to 0, you would stop the timer
@tungdinh22162 жыл бұрын
thanks
@iampro_grammer59174 жыл бұрын
How To display that images randomly in the picturebox ??
@TonyHall714 жыл бұрын
You could generate a random number between 0 and the number of images inside of the tmrChangeImage_tick and just show that image
@ORagnar3 жыл бұрын
You could make an animation.
@DavidTeixeirasin4 жыл бұрын
add if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } at the begin of all his code under the tick otherwise you memory will leak