Auto Search in Combo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahesh123
    New Member
    • Oct 2007
    • 64

    Auto Search in Combo

    Hi Folks,

    I want Help regarding the Auto search in the Combo Box. When I am pressing the characters it will move to the appropraite words in the Combo Box.

    For Example if the Combo Box filled with the Apple, Ant, Boy,Buy

    If press the A then it should go the Apple,Ant,
    If press the An then it should go the Ant.

    Like this to be activate the Auto Search in the Combo.

    Thanks & Regards
    --------------------------
    Mahesh
  • CyberSoftHari
    Recognized Expert Contributor
    • Sep 2007
    • 488

    #2
    there is no such control like that in VB 6.0. (In combobox you can go to the first line of the character and go further as much fast you type). In other hand you can use a textbox and list view.

    Comment

    • anuragshrivastava64
      New Member
      • Jan 2007
      • 66

      #3
      May be u can try this.
      DOesn work fully

      Private Declare Function SendMessage Lib "User32" _
      Alias "SendMessag eA" (ByVal hWnd As Long, ByVal wMsg As Long, _
      ByVal wParam As Long, lParam As Long) As Long


      Private Sub cmbType_GotFocu s()
      Dim lRet As Long
      lRet = SendMessage(cmb Type.hWnd, &H14F, 1, ByVal 0&)
      End Sub

      Comment

      • daniel aristidou
        Contributor
        • Aug 2007
        • 494

        #4
        The combo boxes in vb 2008 (and i think vb 2005) enable you to do this
        Under the properties. there is an autocomplete, function.
        add the items you want to be autocompleted either by code or by editing it in the properties window.

        Comment

        Working...