/// <summary> /// appends text for text boxes /// </summary> /// <param name="obj"></param> /// <param name="text"></param> private void SetAppendText(TextBoxBase obj, string text) { if (obj.InvokeRequired) { SetAppendTextCallback tcb = new SetAppendTextCallback(SetAppendText); this.Invoke(tcb, new Object[] { obj, text }); } else { obj.AppendText(text); } }
/// <summary> /// appends text for text boxes /// </summary> /// <param name="obj"></param> /// <param name="text"></param> private void SetAppendText(TextBoxBase obj, string text) { if (obj.InvokeRequired) { SetAppendTextCallback tcb = new SetAppendTextCallback(SetAppendText); this.Invoke(tcb, new Object[] { obj, text }); } else { obj.AppendText(text); } }