M
Michael C
Hi all,
When I try to use the GetItemAt (e.X, e.Y) method in a ListView MouseDown()
event, it only works some of the time. If I right-click on an open area of
the ListView, I get null back as expected. If I right-click on a
ListViewItem, I get that ListViewItem back. But then... if I right-click on
an open area of the ListView again I get the last ListViewItem I clicked on
back... I'm sure there's a way around this. GetItemAt doesn't seem to be
holding onto the last value returned. I did something similar with the
TreeView GetNodeAt method, and it works as advertised. Anyone have any
ideas on this?
Thanks in advance,
Michael C.
When I try to use the GetItemAt (e.X, e.Y) method in a ListView MouseDown()
event, it only works some of the time. If I right-click on an open area of
the ListView, I get null back as expected. If I right-click on a
ListViewItem, I get that ListViewItem back. But then... if I right-click on
an open area of the ListView again I get the last ListViewItem I clicked on
back... I'm sure there's a way around this. GetItemAt doesn't seem to be
holding onto the last value returned. I did something similar with the
TreeView GetNodeAt method, and it works as advertised. Anyone have any
ideas on this?
Thanks in advance,
Michael C.