private void ErrorBox1_GoToErrorPosition(object sender, EventArgs e) { if (_errorPosition != -1) { TextBoxSQL.SelectionStart = _errorPosition; TextBoxSQL.SelectionLength = 0; TextBoxSQL.ScrollToCaret(); } TextBoxSQL.Focus(); }
private void ErrorBox1_RevertValidText(object sender, EventArgs e) { TextBoxSQL.Text = _lastValidSql; TextBoxSQL.Focus(); }