How to Create Smiley in vb.net

  • How to Create Smiley in vb.net

  • 1 Comment sorted by



  • Private Sub graphicsForm_Paint(ByVal sender As Object, _
    ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint

    With e.Graphics
    ' Draw the yellow circle for the smiley face.
    .FillEllipse(Brushes.Yellow, 280, 150, 30, 30)

    ' Draw 2 black circles for the eyes.
    .FillEllipse(Brushes.Black, 285, 160, 4, 4)
    .FillEllipse(Brushes.Black, 300, 160, 4, 4)

    ' Draw an arc for the smile.
    .DrawArc(New Pen(Color.Black, 2), _
    284, 155, 20, 20, 20, 145)

    End With
    End Sub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

    Optimum Creative