> What I hope to achieve is to have a Set of unique objects by their references. For example, I might put in two rectangles with the same height and width (which makes them equal, but they are still different instances). I guess this is not the best place for such problems, but did you already look at ObjectIdentifier? Tino