Tag: BackgroundWorker
-
When I wrote my article regarding use of the BackgroundWorker to keep the UI responsive, I used the WebClient’s DownloadString method as an example of a long-running process. I used this as an example in explaining how to use the BackgroundWorker, which simply allows for thread-blocking code to be run…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
As I mentioned in my article on implementing the BackgroundWorker to keep your WPF user interface responsive, the BackgroundWorker class supports cancellation. I will illustrate here how easy it is to accomplish. I’ll build this example by continuing the example in the previous article. First, let’s add a BackgroundWorker property…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
I recently completed an application that made use of the WebClient object’s DownloadString method to obtain a JSON string. In my development environment retrieval of this data often took upwards of 30 seconds. If you’ve ever incorporated a time-consuming process in your application, you may have noticed that your user…