Private Sub Form_Close()
Dim intDefHeight As Integer
Dim iintLoop As Integer
Const cintSpeed As Integer = 50
'フォームの元の高さを取得します
intDefHeight = Me.InsideHeight
'フォームの高さを少しずつ小さくしていきます
For iintLoop = intDefHeight To 0 Step (-1 * cintSpeed)
Me.InsideHeight = iintLoop
'Me.Repaint '(状況によっては必要?)
Next iintLoop
End Sub
|