How on winforms add indicator (circle) file download?

Closed due to the fact that the essence of the question is incomprehensible to the participants by cheops , rdorn , Kromster , user194374, Grundy Jun 16 '16 at 9:39 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    1. Create or find the desired gif.
    2. Add to the form control PictureBox .
    3. Set the gif as an image for control.
    4. When you start downloading a file, you make the control visible, after the download is finished, you hide it. Also note that if the control is zadizaged, then the animation will stop working.

    Naturally, the file download should go in a separate thread, otherwise the UI will hang and the user will not see any animation.

    • Will it work without creating a separate stream to download the file? - Aleksandr Zharinov
    • @AleksandrZharinov if you load the file in the UI stream, it will most likely freeze the UI, so there will be little use of the indicator. Thanks for the tip, updated answer. - andreycha
    • @andreycha Can I use wpf? - SVD102
    • @ SVD102 what to use? - andreycha
    • @andreycha Everything said above. - SVD102