If you are looking for a routine to have control over the colors in a treeview I would advise you to use the class made by Burkhard Stiller: a treeview in pure native VFP, no activeX. You are able to set any colour you like. Read his blog: http://myvfpblog.blogspot.com/2007/11/vfp-native-treeview-part-i.html