Hi !
I have the following problem : I want to supress a key for a textbox :

vb.net Code:
  1. If e.KeyCode = 66 Then ' B Key
  2.             e.SuppressKeyPress = True
  3.             e.Handled = True
  4.         End If

this is working, B key is supressed,but adding just a messagebox will not work :

vb.net Code:
  1. If e.KeyCode = 66 Then ' B Key
  2.             e.SuppressKeyPress = True
  3.             e.Handled = True
  4.      MessageBox.Show("OK")
  5.         End If

Why ?
Thank !