Hi again
i have finally got my treeview going but since i have put some code in the nodeclick event the branch does not expand. How do i get the node to expand?
HandyAndy
Example: Private Sub trvTypeUnit_Collapse(ByVal Node As Object)
Dim nodX As Node
Set nodX = Me.trvTypeUnit.SelectedItem
do......... 'My advice: Write codes same codes of NodeClick for correct work of treeview
...........
..........
end sub[/b]
Look at treeview properties window (double click on treeview control). Change properties if it's needed.
Good luck!
Aivars
LOL My summer holidays will start next week! Hurah!
Thanks for your help although i cannot get the +/- like explore thing to work???
ive looked at the syntax for the add method and this is what i got:
Function Add(ByVal hRelativeItem As Variant, ByVal Relation As RelationConstants, ByVal Key As String, ByVal Text As String, Optional ByVal Image As Long=-1, Optional ByVal SelectedImage As Long=-1, Optional ByVal IntegralHeight As Long=1, Optional ByVal Bold As Boolean=False) As Long
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.