Anda di halaman 1dari 1

Private Sub Command1_Click() Call Tutupkeren(Me, False) End End Sub Private Sub Form_Unload(Cancel As Integer) Cancel = -1 End

Sub Sub Tutupkeren(Frm Dim i Dim iWidth Dim iHeight As Form, Optional Maximize As Boolean = True) As Integer As Integer As Integer

With Frm iWidth = .Width iHeight = .Height If Maximize Then .Width = 0 .Height = 0 .Show For i = 0 To 5000 Step 500 .Width = i .Height = i .Left = (Screen.Width .Top = (Screen.Height Next .Width = iWidth .Height = iHeight Else For i = 5000 To 0 Step -10 .Width = i .Height = i .Left = (Screen.Width .Top = (Screen.Height Next Unload Frm End If End With End Sub

.Width) / 2 .Height) / 2

.Width) / 2 .Height) / 2

Anda mungkin juga menyukai