3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by selvaganapathy
0

Hello Dear

HAI

what is this type of above answer?

0

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

Edited by selvaganapathy: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.