void AddNewMyTreeNodeWithTextColor(myTreeNode mtn, myTreeNode relatedDeviceNode, String text, System.Drawing.Color col) { mtn.BackColor = col; mtn.Nodes.Add(text); // expand any failed diagnostics if (col == System.Drawing.Color.HotPink) { // todo, clean this up, bad form to depend on color to indicate failure mtn.Expand(); } // todo, create heirarchy of colors relatedDeviceNode.BackColor = col; }