출처 : 기억이 안난다... ㅠㅠ



/// <summary>

/// border 생성

/// </summary>

/// <param name="e"></param>

protected override void OnPaint(PaintEventArgs e)

{

    base.OnPaint(e);

    int borderWidth = 1;

    Color borderColor = Color.FromArgb(int.Parse("FFBBBBBB", NumberStyles.HexNumber));

 

    ControlPaint.DrawBorder(e.Graphics, e.ClipRectangle, borderColor,

        borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth,

    ButtonBorderStyle.Solid, borderColor, borderWidth,

        ButtonBorderStyle.Solid,

    borderColor, borderWidth, ButtonBorderStyle.Solid);

}














Posted by motolies
,