This was posted by Serge on how to autocomplete a combobox.
what is the >?
When I put this code in my app, the line is red.
VB Code:
Private Declare Function SendMessageStr Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Const CB_FINDSTRING = &H14C Private Sub Combo1_Change() Dim lRetIndex As Long lRetIndex = SendMessageStr(Combo1.hwnd, CB_FINDSTRING, -1, ByVal Combo1.Text) If lRetIndex >= 0 Then Combo1.ListIndex = lRetIndex End Sub




Reply With Quote