Hi All,
I hope you are able to help me with this.
When you type text into a combo, I want to be able to hit "enter" and get a message box with the text I just entered into the combo box. Below is the code I have currently, but I can not seem to get it to work correctly.
Code:Private Sub cbDisplay_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cbDisplay.KeyDown If cbDisplay.SelectedItem = Nothing Then MsgBox(cbDisplay.Text) end if End Sub




Reply With Quote