private void OnReceived(string obj) { MessageListBox.Invoke(new Action(() => { MessageListBox.Items.Add(obj); })); }