VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



I made KeyCode Events For The Whole Alphabet.

by Anonymous (267 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 31st May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

I made KeyCode Events For The Whole Alphabet.

Rate I made KeyCode Events For The Whole Alphabet.



If KeyCode = vbKeyA Then
MsgBox "You Pressed The 'A' Key."
End If
If KeyCode = vbKeyB Then
MsgBox "You Pressed The 'B' Key."
End If
If KeyCode = vbKeyC Then
MsgBox "You Pressed The 'C' Key."
End If
If KeyCode = vbKeyD Then
MsgBox "You Pressed The 'D' Key."
End If
If KeyCode = vbKeyE Then
MsgBox "You Pressed The 'E' Key."
End If
If KeyCode = vbKeyF Then
MsgBox "You Pressed The 'F' Key."
End If
If KeyCode = vbKeyG Then
MsgBox "You Pressed The 'G' Key."
End If
If KeyCode = vbKeyH Then
MsgBox "You Pressed The 'H' Key."
End If
If KeyCode = vbKeyI Then
MsgBox "You Pressed The 'I' Key."
End If
If KeyCode = vbKeyJ Then
MsgBox "You Pressed The 'J' Key."
End If
If KeyCode = vbKeyK Then
MsgBox "You Pressed The 'K' Key."
End If
If KeyCode = vbKeyL Then
MsgBox "You Pressed The 'L' Key."
End If
If KeyCode = vbKeyM Then
MsgBox "You Pressed The 'M' Key."
End If
If KeyCode = vbKeyN Then
MsgBox "You Pressed The 'N' Key."
End If
If KeyCode = vbKeyO Then
MsgBox "You Pressed The 'O' Key."
End If
If KeyCode = vbKeyP Then
MsgBox "You Pressed The 'P' Key."
End If
If KeyCode = vbKeyQ Then
MsgBox "You Pressed The 'Q' Key."
End If
If KeyCode = vbKeyR Then
MsgBox "You Pressed The 'R' Key."
End If
If KeyCode = vbKeyS Then
MsgBox "You Pressed The 'S' Key."
End If
If KeyCode = vbKeyT Then
MsgBox "You Pressed The 'T' Key."
End If
If KeyCode = vbKeyU Then
MsgBox "You Pressed The 'U' Key."
End If
If KeyCode = vbKeyV Then
MsgBox "You Pressed The 'V' Key."
End If
If KeyCode = vbKeyW Then
MsgBox "You Pressed The 'W' Key."
End If
If KeyCode = vbKeyX Then
MsgBox "You Pressed The 'X' Key."
End If
If KeyCode = vbKeyY Then
MsgBox "You Pressed The 'Y' Key."
End If
If KeyCode = vbKeyZ Then
MsgBox "You Pressed The 'Z' Key."
End If
End Sub

Download this snippet    Add to My Saved Code

I made KeyCode Events For The Whole Alphabet. Comments

No comments have been posted about I made KeyCode Events For The Whole Alphabet.. Why not be the first to post a comment about I made KeyCode Events For The Whole Alphabet..

Post your comment

Subject:
Message:
0/1000 characters