p = new Pen(Color.Blue,4); g.DrawRectangle(p,6,6,panel1.Width-10,panel1.Height-10); g.DrawLine(p, panel1.Width / 2 + 6, 6, panel1.Width / 2 + 6, panel1.Height-6); g.DrawLine(p, 6, panel1.Height / 2 + 6, panel1.Width - 6, panel1.Height / 2 + 6);