private void ClearLog() { this.Invoke((MethodInvoker) delegate { ArhivLog.Clear(); }); }
private void AddLineToLog(string text) { this.Invoke((MethodInvoker) delegate { ArhivLog.Text += text + "\n"; ArhivLog.SelectionStart = ArhivLog.Text.Length; //Set the current caret position at the end ArhivLog.ScrollToCaret(); //Now scroll it automatically }); }