|
|
|
|
|
Dicas
|
|
Visual Basic (ActiveX/Controles/DLL)
|
|
|
Título da Dica: Achar uma palavra em um ListBox
|
|
|
|
Postada em 14/8/2000 por Webmaster
webmaster@vbweb.com.br
Public Const LB_FINDSTRING As Long = &H18F Public Const LB_FINDSTRINGEXACT As Long = &H1A2
Public Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Any) As Long
Private Sub Text1_Change() ListBox1.ListIndex = Sendmessage(ListBox1.hWnd, _ LB_FINDSTRING, -1, _ Byval Text1.Text) End Sub
|
|
|
|
|