开发者

C# How to display a wait gif over the screen for 5 seconds when i click on the screen

开发者 https://www.devze.com 2023-01-31 12:44 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号