你用什么画?WinForms上的GDI +?如果是这种情况,您可以使用ControlPaint.DrawBorder3D方法,例如在Paint事件处理程序中:
ControlPaint.DrawBorder3D(e.Graphics,
((Control)sender).ClientRectangle,
Border3DStyle.Bump);
Run Code Online (Sandbox Code Playgroud)
有关所有可用样式的列表,请参阅Border3DStyle枚举.