Search code examples
c#web-servicesdesktopinteraction

Not responding window


My code calls a Web service method which takes a few minutes to perform the operation. During that time my window becomes non responsive and it shows a complete white screen.

I don't want to the call method from a different thread.

It it the best way to handle it?

Environment: C#, web service


Solution

  • You can make the request on a separate thread, which will leave the UI thread responsive. You'll need to synchronise the response back to the UI thread once you've finished.