Results 1 to 2 of 2

Thread: what is node and nodes?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Shanghai,China
    Posts
    5

    Smile

    no

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Nodes
    Returns a reference to a collection of TreeView control Node objects.

    Syntax
    object.Nodes

    The object placeholder represents an object expression that evaluates to an object.

    Remarks
    You can manipulate Node objects using standard collection methods (for example, the Add and Remove methods). You can access each element in the collection by its index, or by a unique key that you store in the Key property.
    Example: load a picture box if node 3 of a treeview is selected.

    Code:
    Private Sub TreeView1_NodeClick(ByVal Node As Node)
        frmTips.Caption = "Index = " & Node.Index & " Text:" & Node.Text
    
    If Node.Index = 3 Then
        With Picture1
            .AutoSize = True
            .Visible = False
            .Picture = LoadPicture(App.Path & "/maple.jpg")
        End With
        
        End If
    
     End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width