public void ShowMessage(string str) { try { if (this.home_txtMsg.Text.Length > 3000) this.home_txtMsg.Clear(); this.home_txtMsg.AppendText(str + "\r\n"); this.home_txtMsg.ScrollToCaret(); Application.DoEvents(); Thread.Sleep(200); } catch { } }