'Number Only And Allow Enter
If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> Chr(13) Then
e.Handled = True
MsgBox("PLEASE USE NUMBER ONLY (0 ~ 9)" & vbCrLf & _
"THANK YOU", MsgBoxStyle.Information, Me.Text)
ElseIf e.KeyChar = Chr(13) Then
MsgBox("ENTER IS ALLOWED" & vbCrLf & _
"THANK YOU", MsgBoxStyle.Information, Me.Text)
End If
Comments
Post a Comment