public void ScrollToCaret() { if (control.IsDisposed) { return; } if (control.InvokeRequired) { ScrollToCaretDelegate del = new ScrollToCaretDelegate(ScrollToCaret); control.Invoke(del); } else { control.ScrollToCaret(); } }
public void ScrollToCaret() { if (control.IsDisposed) return; if (control.InvokeRequired) { ScrollToCaretDelegate del = new ScrollToCaretDelegate(ScrollToCaret); control.Invoke(del); } else control.ScrollToCaret(); }