Results 1 to 2 of 2

Thread: changing treeview icons using imagelis

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    1

    Question changing treeview icons using imagelis

    hi...

    please anyone knows haw to change treeview icons using imagelist ...


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

    Re: changing treeview icons using imagelis

    vb Code:
    1. Private Sub Form_Load()
    2.     'Link the Treeview to the Image List
    3.     TreeView1.ImageList = ImageList1
    4.  
    5.     'when adding a node, specify its image
    6.     TreeView1.Nodes.Add , , , "Hello World", 1
    7. End Sub
    8.  
    9. Private Sub Command1_Click()
    10.     'Change the image of a Node
    11.     TreeView1.Nodes(1).Image = 2
    12. End Sub

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