private void WriteOutputText(string text) { if (this.outputText.InvokeRequired) { WriteOutputTextCallback d = new WriteOutputTextCallback(WriteOutputText); this.Invoke(d, new object[] { text }); } else { this.outputText.AppendText(text); this.outputText.SelectionStart = this.outputText.TextLength; this.outputText.ScrollToCaret(); } }