Dang, I tried creating my own control and it had the same effect as a panel full of items.
I used UserControl to inherit from and overrode the OnPaint method to draw one of the odd shapes of the pieces but I get the same issue of the overlap.
Is there a better way to draw the custom control?
here is the detail in my class
Code:
protected override void OnPaint(PaintEventArgs e)
{
Graphics graphics = e.Graphics;
SolidBrush brush = new SolidBrush(Color.Gold);
graphics.FillRectangle(brush, 80, 0, 40, 40);
graphics.FillRectangle(brush, 40, 40, 80, 40);
graphics.FillRectangle(brush, 0, 80, 80, 40);
}
and initialized like
Code:
CustomShape1 custShape1 = new CustomShape1();
custShape1.Location = new System.Drawing.Point(12, 12);
custShape1.Name = "custShape1";
custShape1.Size = new System.Drawing.Size(120, 120);
is there another way where I can only have it draw my rectangles to create the shape without drawing the entire containing rectangle?
As always, thanks in advance!