Is it possible to tie a ProgressDialog to WriteAllBytes? #28
Answered
by
augustoproiete
thepwrtank18
asked this question in
Q&A
-
While the program is doing WriteAllBytes to a file, the ProgressDialog will show it's progress. |
Beta Was this translation helpful? Give feedback.
Answered by
augustoproiete
May 10, 2021
Replies: 1 comment
-
If by In order to report progress you have to take control of the writes by writing blocks of bytes to the stream yourself. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
augustoproiete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If by
WriteAllBytes
you meanFile.WriteAllBytes
, then no, it's not possible... This API is a one-shot API without any callbacks that would allow you to collect and report progress.In order to report progress you have to take control of the writes by writing blocks of bytes to the stream yourself.