By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,726 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

KeyDown Event

P: n/a
I have a ComboBox with DropDownStyle=DropDownList. Is it possible to cancel
the e.KeyCode in KeyDown event.
When I press "N" it goes to Item starting with N, which is ok. But when I
press CTL+N then I don't want to go to any item. How do we do it.

Private Sub cboApDistribution_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles cboApDistribution.KeyDown
If e.Control = True And e.KeyCode = Keys.N Then
SomeCode......
End If
End Sub

Thanks in advance.
Kartic
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.