okay use the dropdown style

but to ensure only entrys on the list get used place in some auto search code ps maybe also a lil bit of validation

the code i use for the purpose is as follows

VB Code:
  1. Private Sub comboBox1_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles cmbProdCat.KeyUp
  2.         AutoComplete_KeyUp(comboBox1, e)
  3. End Sub
  4.  
  5. Public Sub AutoComplete_KeyUp(ByVal cbo As ComboBox, ByVal e As KeyEventArgs)
  6.         Dim sTypedText As String
  7.         Dim iFoundIndex As Integer
  8.         Dim sFoundText As String
  9.         Dim sAppendText As String
  10.         Select Case e.KeyCode 'allow select keys without auto completing
  11.             Case Keys.Back, Keys.Left, Keys.Right, Keys.Up, Keys.Delete, Keys.Down
  12.                 Return
  13.         End Select
  14.         'get the typed text and find it in the list
  15.         sTypedText = cbo.Text
  16.         iFoundIndex = cbo.FindString(sTypedText)
  17.         'if the typed text is found then auto complete
  18.         If iFoundIndex >= 0 Then
  19.             sFoundText = cbo.Items(iFoundIndex)
  20.             sAppendText = sFoundText.Substring(sTypedText.Length)
  21.             cbo.Text = sTypedText & sAppendText
  22.             cbo.SelectionStart = sTypedText.Length
  23.             cbo.SelectionLength = sAppendText.Length
  24.         Else
  25.             cbo.SelectedIndex = 0
  26.         End If
  27. End Sub