private void setSelectionStart(int val) { if (this.InvokeRequired) { // this is worker thread SelectionStartDelegat del = new SelectionStartDelegat(setSelectionStart); this.Invoke(del, new object[] { val }); } else { // this is UI thread this.SelectionStart = val; } }
private void setSelectionStart(int val) { if (this.InvokeRequired) { // this is worker thread SelectionStartDelegat del = new SelectionStartDelegat(setSelectionStart); this.Invoke(del, new object[] {val}); } else { // this is UI thread this.SelectionStart = val; } }