private void ClearText() { if (ResultsRTB.InvokeRequired) { ClearTextCallback d = new ClearTextCallback(ClearText); ResultsRTB.BeginInvoke(d, new object[] { }); } else { ResultsRTB.Clear(); } }
private void ClearText() { if (ResultsRTB.InvokeRequired) { ClearTextCallback d = new ClearTextCallback(ClearText); ResultsRTB.BeginInvoke(d, new object[] { }); } else { ResultsRTB.Clear(); } }
private void ChangeText(TextBox textBox, string text) { if (textBox.InvokeRequired) { ClearTextCallback cl = new ClearTextCallback(textBox.Clear); Invoke(cl); SetTextCallback ap = new SetTextCallback(textBox.AppendText); Invoke(ap, new object[] { text }); } else { textBox.Text = text; } }