Solved

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

Posted on 2008-09-30
2
265 Views
Last Modified: 2012-06-27
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
Comment
Question by:JMO9966
2 Comments
 
LVL 7

Accepted Solution

by:
AUmidh earned 250 total points
ID: 22606491
@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
 

Author Comment

by:JMO9966
ID: 22606704
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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question