Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the backcolour of a node in a tree view?

Status
Not open for further replies.

99mel

Programmer
Oct 18, 1999
379
GB
Yello,

At the moment i'm using

TreeView.Nodes.Item(1).BackColor = somert

Does anyone know whether its possible to set the backcolour when u add a node? as i'm deleting and addding nodes throughout the program its hard to keep the index numbers updated.

In other words, the only way I know of setting the back colour is by using .Nodes.Item(1) Is there another way so i don't need to use the index? can i use the Key of the node or can i change the back colour when adding a node?

Cheers for any help!

Mel


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top