When "hovering" (MouseMove) over a row in a listview, I would like to temporarily change the ForeColor property of that one row.
There seems to be an error in the code offered in this post by "anotherVBnewbie":
http://www.vbforums.com/showthread.p...ricky+listview
(I get a compiler error, stating that LVM_HITTEST is not defined)
...but I think it is on the track towards what I want to do.
Rather than:
I would probably need something like:VB Code:
If (lItemIndex >= 1) And (lItemIndex <= listview.ListItems.Count) Then listview.ToolTipText = "whatever you want to tip to be" Else listview.ToolTipText = "" End If
VB Code:
If (lItemIndex >= 1) And (lItemIndex <= listview.ListItems.Count) Then listview.ListItems(lItemIndex).ForeColor = &H8080FF Else listview.ListItems(lItemIndex).ForeColor = &HFFFFC0 End If
Anybody got an easy solution to this?
TIA,
Dennis




Reply With Quote