Question Picturebox as oval

tqmd1

Well-known member
Joined
Dec 5, 2009
Messages
60
Programming Experience
Beginner
Dear Experts

How to display picturebox as oval shape.

Please help
 
VB.NET:
Dim gp As New Drawing2D.GraphicsPath
Dim r As Rectangle = Me.PictureBox2.Bounds
r.Location = Point.Empty
gp.AddEllipse(r)
Me.PictureBox2.Region = New Region(gp)
gp.Dispose()
 
Back
Top