Coloring problems with Golinks, not refreshed


We change the pen colors of some GoLinks. (blue or red)

We have four links in our view, after some events we update the colors of all links by calling updatepencolor for each link ( one link blue, the others are red) but at the screen all the links are red (last change of color is red)

After each change of color (link.Pen.Color = color) we called InvalidateViews. We should have blue and red links instead all the golinks are red. Is invalidateView is the way to validate the color change or do we need to do something else ?


You can’t change a Pen or Brush after selecting it into an object. Try link.PenColor.

and you shouldn’t have to call Invalidate.

Thanks Jake, i will try this.