需要自己去做,大致的方法如下:
首先设置窗体的TransparencyKey为一个特殊色,例如Green。
然后在窗体的Paint事件中类似如下处理,例如:
GraphicsPath myPath = new GraphicsPath();
myPath.AddLine( 20,0, 0, 0 );
myPath.AddLine( 0,0, 0, 20 );
myPath.AddArc( new Rectangle( 0,0, 40,40 ), 180f, 90f );
e.Graphics.FillPath( Brushes.Green, myPath );
以上只是实现了做上角,应用到其他边角即可。或许,你做一个底图,然后设置背景图,会使操作更简单些。
温馨提示:答案为网友推荐,仅供参考