VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Cool Form Close Effect

by Ryan Olson - OLSONAMI (6 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

This is a cool closing effect for your app. Tell me watcha think!!

Assumes
you need to add a Form_Unload() into your code.

Rate A Cool Form Close Effect

Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
Me.WindowState = 0
Do
Me.Top = Me.Top + 10  
Me.Left = Me.Left + 10  
Me.Width = Me.Width - 20  
Me.Height = Me.Height - 20 
Loop Until Me.Top => Screen.Height
'you can change those numbers to make it faster
'or slower. right now it is pretty slow.
'if the height and width #'s are twice as much
'as the top and left #'s, it will make a
' "zooming out" effect and then will fall to the
'bottom of the screen.
End Sub

Download this snippet    Add to My Saved Code

A Cool Form Close Effect Comments

No comments have been posted about A Cool Form Close Effect. Why not be the first to post a comment about A Cool Form Close Effect.

Post your comment

Subject:
Message:
0/1000 characters