2008-10-25 5 views

Répondre

1

Voulez-vous dire, vous voulez ignorer la touche d'entrée?

Vous pouvez ajouter un événement keydown et ignorer la touche Entrée ... il

private void textBox1_KeyDown(object sender, KeyEventArgs e) 
    { 
     if (e.KeyCode == Keys.Enter) 
     { 
      e.SuppressKeyPress = true; 
     } 
    } 
Questions connexes