Create a different GoRoundedRectangle


I would like to know if there is a way to create a GoRoundedRectangle, with a double line, as my image?

You could use 2 rounded rectangles, but the easiest was is with .NET’s CompoundPen.

GoRoundedRectangle rr = new GoRoundedRectangle();

rr.Corner = new SizeF(10, 10);

Pen cPen = new Pen(Color.Black, 5);

cPen.CompoundArray = new float[] { 0.0f, 0.2f, 0.8f, 1.0f };

rr.Pen = cPen;

You can play with the Pen width and the array of values to change the relative widths.

perfect Jake! Thanks!!