I have written a multithreaded VB app with the following structure.
The main thread (Thread A) has a set of display screens.
Another thread (Thread B) communicates via TCP/IP with an external server to get information updates that it stores in a global array.
The 3rd Thread (Thread C) updates the info display screens with info from the gloabl array.
I need to handle a scenario whereby Thread B loses communication with the external server. The requirement is to pop up a in the main screen and also close releveant display screens. What is the best way to do this?
Is it possible to close screens/controls in Thread A from Thread C.? If not, should I fire an event from Thread C.? How do i ensure the event is consumed by thread A..?