KeyPress, KeyDown, KeyUp, SP2, Combobox

R

Robert Lalouche

I now have CF SP2 working (I've gotten forecolor to work
for buttons), but can't seem to get KeyPress, KeyDown or
KeyUp to work for the Combobox. I'm trying to increase
the size of the combobox when its in the dropped down
state, and decrease it when its in the upstate. Using
GotFocus and SelectValueChanged works, but not when a
user drops down the combobox but doesn't change the
selection. KeyPress, KeyDown, and KeyUp events never
fire. Any ideas? Thank you for your time.
 
M

Maarten Struys

Are you sure your combobox has focus when you enter keys? Expanding the
combobox with the stylus or explicitely setting the focus to the combobox
results in the firing of the key events for me.
 
J

Jerry Way

I am also having the same problem capturing KeyDown/KeyUp
event. I already have CF SP2 installed. But still I can't
get the event handler work with ComboBox. It works fine
with Button, however.
 
M

Maarten Struys

Could you perhaps send a code snippet so we can
investigate the problem.

Regards,
Maarten Struys
PTS Software
 
J

Jerry Way

Now it works... I actually didn't get SP2 installed
correctly. Sorry for the previous post, which leaded to
furture confusion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top