Results 1 to 2 of 2

Thread: Changing text on a treeview item

  1. #1

    Thread Starter
    Lively Member GoldEagle's Avatar
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    82

    Question Changing text on a treeview item

    How would you change the text on and existing treeview item? I have a parent Item named "files" with text "Files (0 Files)". When a files is added as a child I would like it to read "Files (1 Files)" or what ever number after more files are added.
    Last edited by GoldEagle; May 6th, 2006 at 07:41 PM.
    If you found my post in anyway helpful please rate it.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Changing text on a treeview item

    Every Node has a Text property. All you need to do is set it.

    Dim oNode as Node
    Set oNode = Treeview1.Nodes(1)
    oNode.Text = "Files (" & oNode.Children & " Files)"

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