Results 1 to 5 of 5

Thread: Treeview Colors (This is one for the Guru's)

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Question Treeview Colors (This is one for the Guru's)

    I need to change a treeview control Back Color to ButtonFace and the Fore Color to ButtonShadow, to make it look disabled.

    The problem is, the treeview control doesn't have the BackColor and ForeColor properties.


    How can I do this?


    Thanks in advance.

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    MS KB article Q178491 for the background colour...
    what exactly do you want to do with the "foreground" - do you mean the tree itself....
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185
    Thanks for the KB reference number Crispin, it was a lot of help.


    Regarding the ForeColor, I want to set the label text on every to ButtonShadow so the control looks disabled.

  4. #4
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    have a look at www.mvps.org/vbnet

    Go to code library, then common controls, then look at the treeview samples...

    hope this helps
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  5. #5

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185
    Cheers Crispin

    The www.mvps.org/vbnet website was a lot of help.


    Cheers

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