VB 6 KeyPress event not responding...
Posted on 2004-08-19
I had some code in keypress event working fine. For some reason it is no longer responding. I used "Run/Stard with Full Compile" but no error is coming up (Btw, I have noticed this doesen't necessarily catch all the errors errors).
This morning, I was trying to capture cursor x and y position. I tried to add some additional parameters in:
Private Sub cmdButton_KeyPress(KeyAscii As Integer)
to look like:
Private Sub cmdButton_KeyPress(KeyAscii As Integer, x as integer, y As Integer) 'may be dumb thing to do
It didn't work and gave me compile error (can't recall what it said).
I also played a bit with mouse move event because it already has x as integer and y As Integer. Is it possible that this experiments has something to do with it?
I did a hard reboot; but it didn't help. Do you have any idea what might have happend.
Thanks to your help.