combo box question

  • Thread starter Thread starter Starbuck
  • Start date Start date
S

Starbuck

Hi

Is the a way of making a combobox pull down and display contents by pressing
Insert key while focus is on the control

Thanks for any thoughts.
 
Starbuck said:
Hi

Is the a way of making a combobox pull down and display contents by pressing
Insert key while focus is on the control

Thanks for any thoughts.

Private Sub MyComboBox_KeyDown(ByVal sender As Object, ByVal e As _
System.Windows.Forms.KeyEventArgs) Handles MyComboBox.KeyDown
If e.KeyCode = Keys.Insert Then
MyComboBox.DroppedDown = True
End If
End Sub
 
Thanks Larry

Larry Lard said:
Private Sub MyComboBox_KeyDown(ByVal sender As Object, ByVal e As _
System.Windows.Forms.KeyEventArgs) Handles MyComboBox.KeyDown
If e.KeyCode = Keys.Insert Then
MyComboBox.DroppedDown = True
End If
End Sub
 

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

Back
Top