24/08/2010

Memahami
Pemrograman VisuaI
Berbasis Desktop
I Made Purnama Yasa, S.Kom
YM: tubbies_baIi@yahoo.co.id
BIog: http://purnamayasa.wordpress.com
HP: 081 338 570 641
24/08/2010
Pertemuan 6
Materi PembeIajaran
· Timer
· Animasi Form
24/08/2010
Posisi Timer pada TooIBox
Timer
24/08/2010
angkah 1
Membuat Desain Form
24/08/2010
Timer
24/08/2010
angkah 2
Mengatur Properties
24/08/2010
Properties Form
Properties VaIue
Name Form1
Caption Animasi Form
BorderStyle 1 ÷ Fixed Single
StartUpPosition 0 - Manual
24/08/2010
Properties Timer
Properties VaIue
Name Timer1
Ìnterval 10
Properties VaIue
Name Timer2
Enabled False
Ìnterval 10
24/08/2010
Properties CommandButton
Properties VaIue
Name Command1
Caption Keluar
24/08/2010
angkah 3
Membuat Kode Program
24/08/2010
Klik 2 (dua) kali pada Timer1
24/08/2010
Ketikkan Perintah Berikut
Private Sub Timer1_Timer()
Me.Top = Me.Top - 100
If (Me.Top < (Screen.Height / 2) - Me.Height / 2) Then
Timer1.Enabled = False
End If
End Sub
24/08/2010
Klik 2 (dua) kali pada Timer2
24/08/2010
Ketikkan Perintah Berikut
Private Sub Timer2_Timer()
Me.Top = Me.Top + 100
If Me.Top >= Screen.Height Then
End
End If
End Sub
24/08/2010
Klik 2 (dua) kali pada Command1
24/08/2010
Ketikkan Perintah Berikut
Private Sub Command1_Click()
Timer2.Enabled = True
End Sub
24/08/2010
SeIesai

Sign up to vote on this title
UsefulNot useful