Searching a listBox for a specified string VB6
问题 I have a listbox called lstSerial and a textbox called txtSerials. What I want to do is search lstSerial for the string that's entered in txtSerials. I'm using VB6 in Microsoft Visual Basic 6.0, and I'm having a terrible time finding documentation. Thanks. 回答1: @AlexK's answer is technically correct - yes - it will work, but it's not the preferred way to go. There is an API call for this very purpose: Private Declare Function SendMessage Lib "USER32" Alias "SendMessageA" _ (ByVal hWnd As Long