//method to set the text of the TextBox public void setTextDisplay(String msg) { if (getTextDisplay().InvokeRequired) { dSetTexBox d = new dSetTexBox(setTextDisplay); Invoke(d, new object[] { msg }); } else { getTextDisplay().Text = msg; getTextDisplay().SelectionStart = getTextDisplay().TextLength; getTextDisplay().ScrollToCaret(); } }
public void setTextBox(String msg) { if (textBoxConv.InvokeRequired) { dSetTexBox d = new dSetTexBox(setTextBox); Invoke(d, new object[] { msg }); } else { textBoxConv.Text = msg; textBoxConv.SelectionStart = textBoxConv.TextLength; textBoxConv.ScrollToCaret(); } }
public void setTextBox(String msg) { if (textBoxConv.InvokeRequired) { dSetTexBox d = new dSetTexBox(setTextBox); Invoke(d, new object[] { msg }); } else { textBoxConv.Text = msg; textBoxConv.SelectionStart = textBoxConv.TextLength; textBoxConv.ScrollToCaret(); } }