private int GetNodeWidth(TreeNodeAdv node) { if (node.RightBounds == null) { Rectangle res = GetNodeBounds(GetNodeControls(node, Rectangle.Empty)); node.RightBounds = res.Right; } return node.RightBounds.Value; }