public void Output(string s) { if (!InvokeRequired) txOutput.Text += s + "\r\n"; else this.Invoke(Update, s); }