I have a problem to round a picturebox's edges on visual studio enterprise 2015. I am using this code:
private void pictureBox3_Click(object sender, EventArgs e)
{
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;
}
Nothing happens when I run this code..