• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

How to get ComboBox to recognize Enter key instead of Tab key

Hello,

I have the combobox working with using the Tab key after a value has been selected from the drop-down.

The Tab key forces the LostFocus event for this combobox to run.

I'm trying to get the Enter key to do the same thing but not having any luck.

Please share your thoughts.

Thanks,
JMO9966
0
JMO9966
Asked:
JMO9966
1 Solution
 
AUmidhCommented:
@JMO9966

You can do as the following

Just add keydown event of combo box
and in that write the following condition
if(e.keycode==keys.Enter)
{
// add what you want..
}
0
 
JMO9966Author Commented:
Thanks, that worked slick!

There was two equal signs on yours is all so I changed that.

If (e.keycode==keys.Enter)

End If
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now