Forms Threading Question
-
I am not sure if this is the proper forum... I am looking to create a VB.NET based Forms App that will interact with a Web Service. I want to have a main/UI thread that spawns a thread to handle the web service. How do I then, communicate between the two once this is done? I will need to have the Web Service handling thread send information back to the UI, but also have the UI thread send new information back. Can someone point me in the right direction or to some articles? I haven't had much luck and, with what I have found, have more questions than answers.
-
I am not sure if this is the proper forum... I am looking to create a VB.NET based Forms App that will interact with a Web Service. I want to have a main/UI thread that spawns a thread to handle the web service. How do I then, communicate between the two once this is done? I will need to have the Web Service handling thread send information back to the UI, but also have the UI thread send new information back. Can someone point me in the right direction or to some articles? I haven't had much luck and, with what I have found, have more questions than answers.
You don't need threading to handle this. You can use Asynchronous calls to call your WebService. Take a look at these articles on MSDN: Coordinating Asynchronous Service Calls[^] Asynchronous Method Execution Using Delegates[^] Multithreading and Asynchronous Programming in Web Applications[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You don't need threading to handle this. You can use Asynchronous calls to call your WebService. Take a look at these articles on MSDN: Coordinating Asynchronous Service Calls[^] Asynchronous Method Execution Using Delegates[^] Multithreading and Asynchronous Programming in Web Applications[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome