Results 1 to 5 of 5

Thread: Treeview icon changing when node has focus

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476

    Treeview icon changing when node has focus

    Hi Team

    I have a tree view with each node having 1 of 3 icons depending on what type of node it is. This all works OK until a node gets focus. When a node gets focus its icon changes to the icon of its root node. Any ideas about this?

    Thank FW
    Attached Images Attached Images  
    Last edited by freewilly; Aug 4th, 2005 at 04:14 AM. Reason: Adding diagram of issue

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

    Re: Treeview icon changing when node has focus

    I suggest that you put a break point on any line of code that sets an icon in the TreeView and see if any get executed when the node gets focus. If not, then it may be a bug.
    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
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476

    Re: Treeview icon changing when node has focus

    Thanks JM, but I've tried that.

    Anyone else?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476

    Re: Treeview icon changing when node has focus

    Bump

  5. #5
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Treeview icon changing when node has focus

    Why don't you post some code? Especially the EventHandlers for the TreeView.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

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