KeyDown Event

K

Kartic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top