/// <summary> /// Resets text in logTextBox. /// </summary> public void ResetLog() { if (logTextBox.InvokeRequired) { ResetLogSafely d = new ResetLogSafely(ResetLog); Invoke(d, new object[] { }); } else { logTextBox.Text = ""; } }