membuat form loading dengan vb 6

buat form baru.. isi dengan shape dan timer

BorderStyle Form disetting menjadi None dan BackStyle Shape-nya ganti jadi Opaque biar tar mau berubah warna Trus jangan lupa juga timer interval-nya dikasih 100.

dan juga width dari shape = 0

Private Sub Timer1_Timer()
If Shape1.Width < 7000 Then
Shape1.Width = Shape1.Width + 150
Randomize Timer
cmer = Int(Rnd * 255) + 1
chij = Int(Rnd * 255) + 1
cbir = Int(Rnd * 255) + 1
Shape1.BackColor = RGB(cmer, chij, cbir)
Else
Unload Me
End If
End Sub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s