public static void Cell_TextChanged(object sender, DataGridView dgv, Control e) { if (e != null) { Utilities.txtBoxReplaceNewLine((TextBox)e); dgv.CurrentCell.Value = e.Text; } }
private void txtAnswer_TextChanged(object sender, EventArgs e) { Utilities.txtBoxReplaceNewLine(txtAnswer); }