Tutorial Programming

Tutorial basic, Visual Studio VB.NET 2013 Pengunaan Graphics Ellipse dan Circle


Hallo sahabat saya akan menjelaskan Pengunaan Graphics Ellipse dan Circle pada visual studio 2013, oke langsung aja

Eclipse




Private Sub BtnDraw_Click(sender As Object, e As EventArgs) Handles BtnDraw.Click
Dim myPen As Pen
myPen = New Pen(Drawing.Color.DarkTurquoise, 5)
Dim myGraphics As Graphics = Me.CreateGraphics
Dim myRectangle As New Rectangle
myRectangle.X = 40
myRectangle.Y = 30
myRectangle.Width = 200
myRectangle.Height = 100
myGraphics.DrawEllipse(myPen, myRectangle)
End Sub





Cirlcle



Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
        Dim myPen As Pen
        myPen = New Pen(Drawing.Color.DarkTurquoise, 5)
        Dim myGraphics As Graphics = Me.CreateGraphics
        Dim myRectangle As New Rectangle
        myRectangle.X = 90
        myRectangle.Y = 30
        myRectangle.Width = 100
        myRectangle.Height = 100
        myGraphics.DrawEllipse(myPen, myRectangle)
End Sub


Sekian tutorial saya sahabat semoga bermanfaat yah.

No comments:

Post a Comment

Tutorial Programming Designed by Templateism | Ary EJFA Copyright © 2015

Theme images by richcano. Powered by Blogger.