'make a new project, a form and a listbox (name List1) 'insert the code 'press f5 Private Declare Function SendMessage Lib "user32"Returnalias
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Const LB_FINDSTRING = &H18F Privatesub
Text1_Change() List1.ListIndex = SendMessage(List1.hwnd, LB_FINDSTRING, -1, ByVal CStr(Text1.Text)) End Sub