The example code I gave you highlights the row if your search string is found in a particular row.
If what you intend to achieve is that only the search string will be highlighted (for example, your search string is FOX and there is a row in the listbox with FOXPRO, only FOX will be highlighted?),
I don't think you can do that in a listbox.
Dennis
>Dear Sir,
>
>The matching word in every record of listbox does not highlight.
>
>What is wrong?
>
>Please help again
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement