Cb_party.AutoCompleteMode = AutoCompleteMode.Suggest Cb_party.AutoCompleteSource = AutoCompleteSource.CustomSource Cb_party.AutoCompleteCustomSource = party
Private Sub Cb_party_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Cb_party.KeyPress If e.KeyChar = ChrW(Keys.Enter) Then Dim i As Integer For i = 0 To Cb_party.Items.Count - 1 If Cb_party.Items(i).Equals(Cb_party.Text) Then txt_Km.Focus() GoTo a End If Next MsgBox("Select Listed Item Only") a: End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)