Results 1 to 4 of 4

Thread: [RESOLVED] TreeView stuck as link with Hand Pointer

  1. #1

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Resolved [RESOLVED] TreeView stuck as link with Hand Pointer

    Hi,

    I'm using the TreeView control that ships with Visual Studio 2005 in a webform.aspx page.

    After I bind my data and create the parent and child nodes, it is defaulting to a link type. Example, if I hover over any node, it get the "pointer mouse icon". Instead, I want to get the "arrow mouse icon".

    I want my treeview to be used just for expanding and opening up nodes, and not as a navigation device. Where I can I remove this default?
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

  2. #2

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Re: TreeView stuck as link with Hand Pointer

    Okay, so I found out that I can simply just change the BackColor of the SelectedNodeStyle (I can live with the "mouse pointer icon"), but now if I use a packaged style from the designers "auto format" feature, SelectedNodeStyle does not work. :-(
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: TreeView stuck as link with Hand Pointer

    Can you not iterate through the Nodes collection and add the style attributes to each node?

  4. #4

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Re: TreeView stuck as link with Hand Pointer

    My bad, I was setting the ForeColor instead of the BackColor.
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

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