Click to See Complete Forum and Search --> : KeyPress Event Problems
Armadillo
Nov 16th, 1999, 04:59 AM
I used a Select Case statement to implement some code in the KeyPress Event of a form. However, for some reason the event is never triggered. For example if you press the left arrow button (one of the constants in the select case statement), the focus shifts to an option button on the form. How can I fix this problem?
QWERTY
Nov 16th, 1999, 05:00 AM
Try to put your code in KeyDown or KeyUp
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
Compwiz
Nov 16th, 1999, 05:04 AM
Also, try setting the form's KeyPreview property to True.
------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.