TipsTrikSmall

Kumpulan Tips dan Trick Belajar Komputer

TipsTrikSmall Headline Animator

Translate

English French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified

Membuat Animasi Exit Layout

Diposting oleh SvGie

Membuat Exit Layout
-Buat Form Baru
-Tambahkan Sebuah Command Button
-Klik 2x Pada command button
-Tuliskan List program berikut:

Private Sub Command1_Click()
ExitLayout
Unload Me
End Sub

Private Sub ExitLayout()
On Error Resume Next
Dim fHeight As Long
Dim fWidth As Long

For fHeight = Me.Height To 1000 Step -1
Me.Height = fHeight
'Move (Screen.Width - Width) / 2, (Screen.Height - Height) / 3
Next fHeight

If Me.Height = 1000 Then
For fWidth = Me.Width To 1000 Step -2
Me.Width = fWidth
Next fWidth
End If
Me.Refresh
End Sub

0 komentar:

Posting Komentar

print this page

Entri Top