txtBoxReplaceNewLine() public static method

public static txtBoxReplaceNewLine ( TextBox txtb ) : void
txtb System.Windows.Forms.TextBox
return void
Example #1
0
 public static void Cell_TextChanged(object sender, DataGridView dgv, Control e)
 {
     if (e != null)
     {
         Utilities.txtBoxReplaceNewLine((TextBox)e);
         dgv.CurrentCell.Value = e.Text;
     }
 }
Example #2
0
 private void txtAnswer_TextChanged(object sender, EventArgs e)
 {
     Utilities.txtBoxReplaceNewLine(txtAnswer);
 }