Dear Experts
How to display picturebox as oval shape.
Please help
HAI
Hello Dear
HAI
what is this type of above answer?
Hi Try this
Imports System.Drawing.Drawing2D
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim gPath As GraphicsPath
Dim rgn As Region
PictureBox1.BackColor = Color.Blue
'Create a graphics path
gPath = New GraphicsPath()
'Add elliptical
gPath.AddEllipse(PictureBox1.ClientRectangle)
'Create a region
rgn = New Region(gPath)
'Change the picture region
PictureBox1.Region = rgn
End Sub
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.