Treeview problem

GregSmith

Registered User.
Local time
Today, 17:46
Joined
Feb 22, 2002
Messages
126
I have a working treeview.
I can expand the objects and view all sub (child) objects with no problems.

What I am trying to do is when I click on an item, a message box will pop up telling me the item name.

Any idea on how to do a "on click event" for items in the treeview?

I have searched the forum and came up empty... :(

Thanks, Greg
 
Add this:

Private Sub TreeView_NodeClick(ByVal Node As Object)
MsgBox TreeView.SelectedItem
End Sub

Works like a charm!



GregSmith said:
I have a working treeview.
I can expand the objects and view all sub (child) objects with no problems.

What I am trying to do is when I click on an item, a message box will pop up telling me the item name.

Any idea on how to do a "on click event" for items in the treeview?

I have searched the forum and came up empty... :(

Thanks, Greg
 

Users who are viewing this thread

Back
Top Bottom