Hello.
Congratolations with that project. I'm new using that ocx. I'm adapting a vb project with that ocx but I see that have a lot of differences and doubts. Hope you can help me...
I use the treeview and when I select one node, my script check on the database (is via remote TCP-IP) and insert new childrens on the selected node but what is strange is that the treeview not shows it automatically. I need to click again on the same node for show the childrens. I fixed that executing the command treeview.refresh or treeview.redraw just right after insert the childrens. It works but it's normal? Doesn't exists nothing better?
Code:
Private Sub TreeView_NodeClick(ByVal Node As TvwNode, ByVal Button As Integer)
    FRM.LVAlert.Visible = False
    
    If TCP_NotConnected Then Exit Sub

    textExplorer.Text = Node.FullPath & "\"
    textExplorer.Tag = Node.Key

    If Node.Tag = "" Then
        'Faz busca de pastas ao cliente
        TCP.SendData EXPLORER_Folders & vbAA & textExplorer.Text & vbAABB
        Node.Tag = True 
    Else
        'Faz busca de ficheiros ao cliente
        TCP.SendData EXPLORER_Files & vbAA & textExplorer.Text & vbAABB
        lvFicheiros.ListItems.Clear
    End If
    
    Node.BackColor = &H6D6D6D
    lvFicheiros.BackColor = &H80000018
End Sub
And Insert here:

Code:
....
        If Right$(Data_Received, 1) <> vbBB Then Exit Sub
        
        s = Split(Data_Received, vbAA)
        Data_Received = vbNullString
        
        lvFicheiros.ListItems.Clear
        For x = 1 To UBound(s) - 1
            TreeView.Nodes.Add textExplorer.Tag, tvwChild, "K" & treeKEY, s(x)
            treeKEY = treeKEY + 1
        Next x
        
        TCP.SendData EXPLORER_Files & vbAA & textExplorer.Text & vbAABB
        
        TreeView.Redraw = True
....
Other thing:
Any click anywhere on the treeview it calls the Sub TreeView_NodeClick! But I just want accept any click when really have selected the inside of node and not outside... How can I solve this?

Also, the variable treeview.node.checked (true or false) just can change when the checkbox is enable. But with the treeview from microsoft I used it as variavel for certain intern information and not for the user. So I don't wanna see the check box at left of the node, but use it internal. But not showing the check box, it node.checked, will be all the time false and if I try change it node.checked=true, I get an error... Can I change that for use it ?

And last, the SCroll= true in design mode, shows the scroll in the treeview but all the time I open a node (clicking on +) other node close automatically... If I put scroll=false, then I can open all nodes (not close automatically) but not shows the scroll.

I must say that the program already worked for long time withe the treeview microsoft ocx.

Hope you all understand and can help. Sorry my english is not good! Thank you