private void SetMessageBox() { BeginInvoke(new MethodInvoker(() => { textBox1.AppendText(MyMessageBox.GetMessageBuilder() + Environment.NewLine); textBox1.SelectionStart = textBox1.Text.Length; textBox1.ScrollToCaret(); })); }