treeview click on item node

User avatar
sal21
PlatinumLounger
Posts: 4470
Joined: 26 Apr 2010, 17:36

treeview click on item node

Post by sal21 »

I need (debug.print of node) but to restrict ony if i click on node with left button of mouse...

my test:

Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)

'If MouseButton = vbLeftButton Then
Debug.Print Node
'End If

End Sub
Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
'MouseButton = Button
End Sub

User avatar
HansV
Administrator
Posts: 79287
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: treeview click on item node

Post by HansV »

Does it work if you uncomment those lines beginning with ' ?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4470
Joined: 26 Apr 2010, 17:36

Re: treeview click on item node

Post by sal21 »

HansV wrote:
19 Jun 2024, 16:51
Does it work if you uncomment those lines beginning with ' ?
:clapping: