I’ve some huge images (7000*5000) to load simultaneously in my program, which I’m displaying in picturebox one by one. These images take some time to load in the PictureBox. At first I’m loading all the images in an Image array as Bitmap, then I’m just showing the first image in picturebox picturebox.Image = imageArray[0]. So I want to show wait cursor until first image is shown in Picturebox. Is there any way to know when the first image is shown on Picturebox?
I’ve some huge images (7000*5000) to load simultaneously in my program, which I’m displaying
Share
You can use the PictureBox events :
LoadProgressChangedto show the loading progress andLoadCompletedto do something when it is finished.To make this work, you have to keep the
.WaitOnLoadvalue property to False, and you have to use one of theLoadAsyncmethod.