Everything is in the Zip file!
Before
NowCode:Public Function Add(Optional ByVal Relative As Variant, _ Optional ByVal Relationship As TvwNodeRelationshipConstants , _ Optional ByVal Key As String, _ Optional ByVal Text As String, _ Optional ByVal Image As Long, _ Optional ByVal SelectedImage As Long) As TvwNode
In MainFormCode:Public Function Add(Optional ByVal Relative As Variant, _ Optional ByVal Relationship As TvwNodeRelationshipConstants = TvwNodeRelationshipNext, _ Optional ByVal Key As String, _ Optional ByVal Text As String, _ Optional ByVal Image As Variant, _ Optional ByVal SelectedImage As Variant) As TvwNode
Code:TreeView1.Nodes.Add , , , "1", "FOLDER_CLOSE", "FOLDER_OPEN" TreeView1.Nodes.Add(1, TvwNodeRelationshipChild, , "1-1", "MAIL", "OPEN").ForeColor = vbBlue TreeView1.Nodes.Add(1, TvwNodeRelationshipChild, , "1-2", 1).ForeColor = vbBlue TreeView1.Nodes.Add , TvwNodeRelationshipNext, , "2", 1Values "Image" or "SelectedImage" can be either text or numerical form.Code:?TreeView1.Nodes(1).Image FOLDER_CLOSE ?TreeView1.Nodes(1).SelectedImage FOLDER_OPEN ?TreeView1.Nodes(2).Image MAIL ?TreeView1.Nodes(3).Image 1
This is normal operation.
I wrote a program that uses ONLY key in text form ..




Reply With Quote