Reputation: 2217
As you all know, a label is usually in a square or rectangle shape. I really need to make circle shaped label. Can anyone please tell me is this possible or at least point me in a right direction?
Sorry, just to make things clear. I want a circle shaped label. Not just drawing a circle on the screen.
Upvotes: 10
Views: 24852
Reputation: 31202
You can set the Region property of your Label :
var path = new System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(0, 0, label1.Width, label1.Height);
this.label1.Region = new Region(path);
Upvotes: 15
Reputation: 7001
System.Drawing.Graphics graphics = this.CreateGraphics();
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(100, 100, 200, 200);
graphics.DrawEllipse(System.Drawing.Pens.Black, rectangle);
Upvotes: 6