Is it possible to highlight partial text in a ListView SubItem ?
Hi, just wondered if there was some way of doing this using an API as I can not find any standard Properties to do this.
I am trying to enhance my ListView display to highlight the actual search text within a longer display string showing 10 characters either side of the found search text.
I have searched high and low on the web and found several ways of highlighting partial text within other controls using SendMessage, but not within a ListView.
Re: Is it possible to highlight partial text in a ListView SubItem ?
Here is my idea:
Place control array of textbox over the listsubitems. Copy the text from listsubitem to the textbox and highlight the text in the textbox.
I've attatched my test project.
Run it and click "Find&Highlight" button. Then scroll the listview using scrollbar. (tracking scrolling through keyboard shouldn't be hard)
It still has bug(s). If you keep pressing the scrollbar when the listview scrolled to bottommost, VB crashes.