private void btnOK_Click(object sender, EventArgs e) { try { int row = int.Parse(txtRow.Text) - 1; mOwner.GotoLine(row); } catch {} Close(); }