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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top