Private Sub txtpostcode_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles txtpostcode.KeyUp If (Not Char.IsNumber(ChrW(e.KeyCode))) Then MsgBox("Please re-enter your postcode", vbExclamation) txtpostcode.Text = "" End If End Sub
Guess psedo code is really a little open to personal style. Me, I would go something like
If keypress is letter Show Messagebox Clear postcode end if
1.4m articles
1.4m replys
5 comments
57.0k users