I have a small application with only a Button
and a TextBox
. So, when I click button I have to modify text and send some HTTP requests, nothing more. But the text must be modified before any requests are made. I'm doing both operations (text setting and requests) in one thread and all the requests are synchronous HttpWebRequest
(because nothing can be done until all requests are finished). This is my click handler code:
messageTb.Text = "Connecting...";
doRequests();
But it works a little bit strange: first, I get all my requests done and only after this the text gets modified.