Dale Fye
asked on
Treeview control in 64 bit Office.
I've implemented the treeview control created by Peter Thorton (JKP Application Development Services, info@jkp-ads.com, http://www.jkp-ads.com) in a client application.
It is working great except when I perform a search of the tree nodes. In this case, I want to be able to "select" the appropriate node based on the caption in the node. I'm using the following code to perform this task:
Private Sub cmd_Find_Click()
Dim intLoop As Integer
Dim nd As clsNode
For intLoop = 1 To Me.mcTree.Nodes.Count
If Me.mcTree.Nodes(intLoop).C aption Like "*" & Me.txt_Find & "*" Then
Set nd = Me.mcTree.Nodes(intLoop)
Call mcTree_Click(nd)
End If
Next
End Sub
And it works in that if finds the correct node, sets the nd object to the correct node, and then performs the tasks associated with the mcTree_Click event. However, I need to actually display this node in the treeview window, and it is not performing that task.
Anyone familiar with this control version of the treeview know how to accomplish this.
Dale
It is working great except when I perform a search of the tree nodes. In this case, I want to be able to "select" the appropriate node based on the caption in the node. I'm using the following code to perform this task:
Private Sub cmd_Find_Click()
Dim intLoop As Integer
Dim nd As clsNode
For intLoop = 1 To Me.mcTree.Nodes.Count
If Me.mcTree.Nodes(intLoop).C
Set nd = Me.mcTree.Nodes(intLoop)
Call mcTree_Click(nd)
End If
Next
End Sub
And it works in that if finds the correct node, sets the nd object to the correct node, and then performs the tasks associated with the mcTree_Click event. However, I need to actually display this node in the treeview window, and it is not performing that task.
Anyone familiar with this control version of the treeview know how to accomplish this.
Dale
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dale