I have 4 images (with text) in a ListView. When 1 of the images is selected, not only the text accompanying that image gets highlighted even the image gets highlighted. Now I want only the text to be highlighted, not the image. How do I do it?
I came across this article in VBForums which makes use of 2 CommandButtons to kill the focus rectangle. Since I am not using a CommandButton, I am putting the only line (in that code) in the Command1_Click event function in my ListView1_Click event function but when I run it, VB crashes.
You could use the _ItemClick event, which fires when an item is selected, and blit the icon image from the ImageList onto the ListView's DC - that should overwrite the "highlighted" image.
If you need any assistance with that I might be able to construct a quick example, that's assuming it works