How do we know that the Click event not getting
and the KeyPress event get the KeyAscii parameter?
Double Click on the command button.
2 new lines have been inserted to your code:
Private Sub Command1_Click()
as you see, the Click event gets no parameters.
Now go to the button KeyPress event,
via the right ComboBox under the title bar,
which now showing the current event - Click
After you choose KeyPress from the combobox,
2 new lines were inserted to your code:
Private Sub Command1_KeyPress(KeyAscii As Integer)
As you can see, the button KeyPress event get the KeyAscii parameter.