Posts

Showing posts from April, 2016

How to Create a Star Rotation Program in VB.net

Design View :                     Take two control button and timer control and not change any property. Code View : Public Class Form1     Dim g As Graphics     ' variable declaration     Dim theta As Double = 3.1415 / 180     Dim t(5) As Double     Dim i As Integer = 1     Dim xc, yc, r, cx, cy As Integer       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         Timer1.Start() ' timer is star to draw the star     End Sub     Public Sub drawstar()         g = Me.CreateGraphics         g.Clear(Color.White)              r = 80 ' siz...