|
-
Sep 30th, 2000, 01:25 PM
#1
Thread Starter
Junior Member
Hi.. I am using a treeview ctrl to deslpay some data. I want to add a right-click functionality to those nodes only which do not have children !
I am using this code (which is not working):
---------
Private Sub treeview_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = vbRightButton Then
If treeview.SelectedItem.Children > 0 Then
Exit Sub
Else
PopupMenu mnuRecords
End If
End If
End Sub
---------
What am I doing wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|