반응형
링크 : http://msdn.microsoft.com/ko-kr/library/system.windows.forms.controlpaint(v=vs.110).aspx
테두리 그리는데 여러가지 방법이 있겠지만, ControlPaint 클래스의 DrawBorder 를 이용하면 간단하게 그릴 수도 있다.
// Handle the Form's Paint event to draw a 3D three-dimensional
// raised border just inside the border of the frame.
private void Form1_Paint(object sender, PaintEventArgs e)
{
Rectangle borderRectangle = this.ClientRectangle;
borderRectangle.Inflate(-10, -10);
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Raised);
}
반응형
'Development > C# | Windows Application | ASP.NET' 카테고리의 다른 글
System.Drawing - 문자열 그리기 자간에 대해서 (0) | 2014.12.23 |
---|---|
통화(원) 표기 (0) | 2014.12.04 |
VBS(VisualBasicScript) 파일 실행 (0) | 2014.11.15 |
Microsoft.ACE.OLEDB.12.0 공급자는 로컬 컴퓨터에 등록할 수 없습니다.(System.Data) (3) | 2014.11.15 |
Graphics 에서 문자열의 Size 찾기 (0) | 2014.10.08 |
댓글