I have a Form that contains a User Control.
The user control contains a class that starts a separate thread that in turn uses a TCP Client to listen for automatic updates.
Inside that thread I need to perform operations on the user control.
For the cross thread communication I want to use the SynchronizationContext Context from the main form so I can use a call like
Context.Post(new SendOrPostCallback(MyFunctionHere(XmlDocument updates), null);
How can I pass the Context through the User Control constructor to the Class and so into the update thread to perform my updates?