KeyDown Event

  • Thread starter Thread starter Kartic
  • Start date Start date
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
 
Back
Top