Rounded edges in picturebox C#

Kracken picture Kracken · Oct 11, 2011 · Viewed 33.1k times · Source

How to round edges in picturebox control. I Want to get angles like ellipse have but i dont know how to do it. I Use C#. Thanks!

Answer

Moory Pc picture Moory Pc · Mar 30, 2014

putting 1 Picture box on the form and write this code also you can change the the minus number beside of Width and Height to get best result

 System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
            gp.AddEllipse(0, 0, pictureBox1.Width - 3, pictureBox1.Height - 3);
            Region rg = new Region(gp);
            pictureBox1.Region = rg;

enter image description here