Using the C# Dispatcher
I'm building a chat client and am not 100% sure on how to use the dispatcher . So the question is I have a method as such: public void LostConnection() { myGUI.chatBox.AppendText("Lost connection to room: "+ myGUI.UsernameText.ToString() + "\r\n"); } Do i need to surrond the statement within (myGUI.chatBox... ) with a Dispatcher.Invoke ? I appreciate any help. Ricibob Your app has a main UI thread (usually ManagedThreadId==1 ). Typically in a chat app your events will come in on other threads (either dedicated socket listen threads or thread pool threads from listening code). If you want to