Click here to Skip to main content
14,367,095 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi all my program after selecting the folder will be crashed

What I have tried:

 WebClient client = new WebClient();

                client.DownloadProgressChanged += Changed;
                client.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
Updated 8-Nov-19 3:59am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

will not work, you need to use a real address.

Also see example here: How to download a webfile with C# and show download progress synchronously and asynchronously | Our Code World[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100