hi How to display a wait gif over the screen for 5 second i want to show a loading image(Gif) over a picturebox. eg when i click on the picturebox , before load another image in开发者_如何学Pythonto this picturebox my loading image(animation image(gif)) showing on the screen for 3 second and this gif image unvisible then another image load into picturebox. on the other hand How to display a wait gif until image is fully loaded in c#.net 3.5 please help me thanks
You could use the PictureBox.LoadAsync(string url)
. The PictureBox will then raise
LoadProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
and
LoadCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
events.
精彩评论