處理Panel的邊框線

客製化winform Panel邊框線

        private void ctrPanel9_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(
                e.Graphics, ctrPanel9.ClientRectangle,
                C, 1, ButtonBorderStyle.None,
                C, 1, ButtonBorderStyle.None,
                C, 1, ButtonBorderStyle.None,
                C, 1, ButtonBorderStyle.Solid
                );
        }