I have tried many MANY different things, looked at dozens of topics about this, and still it won't work. Here's my code:
and for some reason if i put an or in everything but the first key displays the message box
I don't know what to try anymore, please help!
BTW, I am using VB.NET 3.5 (2008)
Thanks in advance!
VB.NET:
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If Val(e.KeyChar) = Keys.Left Then
MsgBox("")
End If
End Sub
and for some reason if i put an or in everything but the first key displays the message box
VB.NET:
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If Val(e.KeyChar) = Keys.Left Or Keys.A Then
MsgBox("")
End If
End Sub
I don't know what to try anymore, please help!
BTW, I am using VB.NET 3.5 (2008)
Thanks in advance!