Create windows forms in Any Shape in vb.net

following example show that how to create shaped windows form in vb.net

in this example we will create windows form in Ellipse shape.

Code
Put this code on Windows Form’s Paint event

[VB.Net]

    Private Sub Form1_Paint(ByVal sender As System.Object, _
          ByVal e As System.Windows.Forms.PaintEventArgs) _
           Handles MyBase.Paint
        Dim Tempshape As New System.Drawing.Drawing2D.GraphicsPath()
        Tempshape.AddEllipse(0, 0, Me.Width, Me.Height)
        Me.Region = New System.Drawing.Region(Tempshape)
    End Sub

[C#]

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            System.Drawing.Drawing2D.GraphicsPath Tempshape = 
                new System.Drawing.Drawing2D.GraphicsPath();
            Tempshape.AddEllipse(0, 0, this.Width, this.Height);
            this.Region = new System.Drawing.Region(Tempshape);
        }