469,903 Members | 1,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

KeyDown Event

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
0 1158

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mike M | last post: by
3 posts views Thread by bardo | last post: by
2 posts views Thread by ZS | last post: by
2 posts views Thread by Will Gillen | last post: by
1 post views Thread by fripper | last post: by
6 posts views Thread by mingchin.AT | last post: by
5 posts views Thread by ApexData | last post: by
3 posts views Thread by Luc The Perverse | last post: by
3 posts views Thread by win | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.