Display images in PictureBox
-
hi all, How to display 5 or more images in a PictureBox in quick succession say within 2 seconds? Thanks and regards, praveen
-
hi all, How to display 5 or more images in a PictureBox in quick succession say within 2 seconds? Thanks and regards, praveen
By setting a timer, and changing the image every time ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
By setting a timer, and changing the image every time ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Thanks for reply. Can you give code snippet or some hint how to do this? thanks again..
-
Thanks for reply. Can you give code snippet or some hint how to do this? thanks again..
Timer timer = new Timer(); timer.Interval = 2000/numberOfImages; timer.Tick += delegate { ++imageToShow; if (imageToShow > imageCount) imageToShow = 0; pictureBox.Image = images[imageToShow]; }; timer.Start(); This assumes those other variables contain the necessary data, of course.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Timer timer = new Timer(); timer.Interval = 2000/numberOfImages; timer.Tick += delegate { ++imageToShow; if (imageToShow > imageCount) imageToShow = 0; pictureBox.Image = images[imageToShow]; }; timer.Start(); This assumes those other variables contain the necessary data, of course.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Thanks alot...