19 March 2015

Cara Membuat Program Gerak Menggunakan Visual Basic 6.0

1. Buka Software Visual Basic 6.0

2. Pilih Standard EXE lalu klik open

3. Desain Form seperti ini

4. Masuk coding dengan cara klik 2 kali di Form

Private Sub Command1_Click()
    Shape1.Top = Shape1.Top - 100
End Sub

Private Sub Command2_Click()
    Shape1.Top = Shape1.Top + 100
End Sub

Private Sub Command3_Click()
    Shape1.Left = Shape1.Left + 100
End Sub

Private Sub Command4_Click()
    Shape1.Left = Shape1.Left - 100
End Sub

5. Jalankan program dengan menekan F5

Download  Program Gerak  Visual Basic 6.0 dilink dibawah ini
https://www.4shared.com/s/fon77MZ9Eei

No comments: