public void CMDprintError(string value) { string log = string.Format("[{0}][Error]{1}\r\n", DateTime.Now.ToLongTimeString(), value); try { CmdrichTextBox.AppendText(log); } catch (Exception e) { this.Invoke(new Action(delegate { CmdrichTextBox.AppendText(log); })); } }