ListView Control

G

Gus

Hi everyone
I've been trying to use the 'HitTest' property of the
Treeview/Listview controls but for some reason only the
Treeview is working properly

This is the Code for the Treeview

Dim MyOtherNode As Node
Set MyOtherNode = Me.TreeView1.HitTest(X,Y)
----------------------------
This is the Code for the ListView.

Dim List As ListView
Dim lListItem As ListItem

Set List = ListView1.Object
Set lListItem = List.HitTest(X, Y)
MsgBox lListItem.Text

When I run this code I get 'object variable or with block
variable not set'

Any ideas as to where the problem is

Thanks
Gus
 
Top