Click here to Skip to main content
15,919,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a combo drop down list where I want particular behaviour for TAB and Enter. The KeyPress event is catching Enter but not TAB.

Any ideas?
Posted

1 solution

Try the KeyDown or KeyUp events. According to documentation, non-visible keys do not raise the KeyPress event (http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx[^])
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900