Results 1 to 3 of 3

Thread: win form treeview image

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    win form treeview image

    Hi,
    A treeview control is populated with data
    i.e.:
    item1
    subitem1
    subitem2
    ...

    Not sure why when I click on a subitem, the image changes. There are no events that fire this.
    When assigning the images, I do assign using imageindex and selectedimageindex

    Note that clicking on the parent i.e. the item does NOt change the image whereas clicking on the subitem does.

    Do you know why this is occuring please?
    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: win form treeview image

    Presumably you've assigned different values to the ImageIndex and SelectedImageIndex properties of the node.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Re: win form treeview image

    I have checked and I have assigned the SAME image for both indeximage and selectedimageindex.
    Still have the same problem.
    Thanks

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