|
-
Aug 13th, 2001, 01:58 AM
#1
Thread Starter
Addicted Member
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.
-
Aug 13th, 2001, 03:19 AM
#2
Fanatic Member
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]
-
Aug 13th, 2001, 04:28 AM
#3
Thread Starter
Addicted Member
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.
-
Aug 13th, 2001, 05:15 AM
#4
Fanatic Member
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]
-
Aug 13th, 2001, 05:41 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|