txtBoxReplaceNewLine() public static method

public static txtBoxReplaceNewLine ( TextBox txtb ) : void
txtb System.Windows.Forms.TextBox
return void
コード例 #1
0
ファイル: Utilities.cs プロジェクト: KaramanisWeb/TestMeApp
 public static void Cell_TextChanged(object sender, DataGridView dgv, Control e)
 {
     if (e != null)
     {
         Utilities.txtBoxReplaceNewLine((TextBox)e);
         dgv.CurrentCell.Value = e.Text;
     }
 }
コード例 #2
0
 private void txtAnswer_TextChanged(object sender, EventArgs e)
 {
     Utilities.txtBoxReplaceNewLine(txtAnswer);
 }