【发布时间】:2013-02-22 08:06:17
【问题描述】:
当鼠标移到我的控件上时,是否可以出现外部阴影?在winforms中?
我可以改变它的外观,但是一个影子?
public class MyButton : Button
{
protected override void OnPaint(PaintEventArgs pevent)
{
GraphicsPath path = new GraphicsPath();
path.AddEllipse(0, 0, ClientSize.Width, ClientSize.Height);
this.Region = new Region(path);
base.OnPaint(pevent);
}
}
【问题讨论】: