Results 1 to 9 of 9

Thread: Tree View control

  1. #1

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516

    Tree View control

    Anyone know if there is a way to change the color of the font
    on an individual node.. not all the text for the whole tree ??

  2. #2
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    VB Code:
    1. Treeview1.Nodes(i).ForeColor = vbRed


  3. #3

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516
    I tried to use that property.. it doesnt show as a popup list property and when I forced it upon it it errored..

    it does have a trwtest.nodes(2).text but no forcolor under that either...

    am I missing something ??

  4. #4
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    hmm....that's odd, it shows up on mine. check in your Components list, are you using Windows Common Controls 6.0? could be that earlier versions don't support it.

  5. #5

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516
    I was using 5.0... trying to update it to 6.0...

    you know if there is an easy way to do that.. I tried just adding
    in the new one and renaming it.. but now when I run it it tells me

    "procedure delcaration does not match description of event or procedure having the same name"

    sounds like the new treeview must have different parameter lists..

  6. #6
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    what's the code you have that's causing that error?

  7. #7

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516
    I fixed it ... it was the node as param..

    its needs MSComctlLib.Node now...

    but I cant get it to associate with my old image list...

    it just doesnt showup in the drop box when I go to the properites of the tree view... something new I need to do ??

  8. #8
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    could be that you also need to replace your imagelist with the 6.0 version.

  9. #9

    Thread Starter
    Fanatic Member kevin_sauerwald's Avatar
    Join Date
    Feb 2002
    Location
    outside Philly
    Posts
    516
    did that and it works and I got the forecolor property now !!

    nice.. thanks for the help....

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