Common C#/C# GDI+ Study2008. 11. 14. 10:12
http://www.microsoft.com/korea/msdn/smartclient/community/wffaq/ctrl.aspx#Qca22q9ci
using System.Drawing;
using System.Windows.Forms;

public class ButtonWithCustomBorder : Button
{
  protected override void OnPaint( PaintEventArgs e )
  {
    base.OnPaint( e );
    
    Color borderColor = Color.Blue;
    int borderWidth = 1; 
    int borderStyle = ButtonBorderStyle.Solid;

    ControlPaint.DrawBorder(
      e.Graphics, e.ClipRectangle,
      borderColor, borderWidth, borderStyle,
      borderColor, borderWidth, borderStyle,
      borderColor, borderWidth, borderStyle, 
      borderColor, borderWidth, borderStyle ); 
  }
}

Posted by penguindori