vb.net 2003
i have the following procedure
Private Sub StrLicence_KeyP ress(ByVal sender As Object, ByVal e As
System.Windows. Forms.KeyPressE ventArgs) Handles StrLicence.KeyP ress
Select Case e.KeyChar
Case Microsoft.Visua lBasic.ChrW(13)
MsgBox(" ENTER PRESSED")
' move to next field
Case Microsoft.Visua lBasic.ChrW(8)
MsgBox(" backspace PRESSED")
Case Microsoft.Visua lBasic.ChrW(9)
MsgBox("TAB PRESSED")
' move to next field
Case Microsoft.Visua lBasic.ChrW(48) To
Microsoft.Visua lBasic.ChrW(57)
MsgBox(" NUMBER PRESSED")
Case Else
' show error
MsgBox("MUST BE NUMERIC")
End Select
End Sub
what i want to do is in this case if an alpha charachter is pressed, i show
the must be numeric message, but i also want to stop that character being
displayed ...