开发者

Show .gif animation when control is not there in the c# (windows) application

I have one ap开发者_StackOverflowplication in that i am calling a .php file using webClient from the server. To complete the process it takes few minutes(based on the client db). I tried to show progress bar but because of control is not here it's not processing . It updating when it completes the download process. So now i am trying to show .gif image but same thing happening with the image also. Any other solutions are there??????


Sure. You'd want to do your time-consuming tasks in a separate (non-UI) thread, and let the UI thread do the message processing, which in turn redraws your progress bar and animates GIFs.


You can do it using Threading. You can do your work of calling a .php file in a new thread and in the UI thread you can show a gif image to show to the user that the process is continuing and after thread completes the work you can hide the gif image.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜