Results 1 to 2 of 2

Thread: treeview image index

  1. #1

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    treeview image index

    I have a treeview with more levels which uses an ImageList. How can I set the images only to 1st level nodes? The child nodes must have the default + sign.


    thank you
    Home is where your Head is

  2. #2
    Lively Member Shardox's Avatar
    Join Date
    Nov 2006
    Location
    Barcelona, Spain
    Posts
    123

    Re: treeview image index

    VB Code:
    1. For Each nodo As TreeNode In TreeView.Nodes
    2.       If nodo.Level = 1 Then nodo.ImageIndex = TheImageIndexYouWant
    3. Next

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