VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Form Trick

by SeeD (22 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (44 Votes)

When your user closes your form, it shrinks and slowly drifts off the screen in the direction of YOUR choice! (o: A simple code! (o:

Assumes
OK, do this: 1) Start up a new project in your Vb. 2) Add a timer - set it's interval to 2 3) Add the code below to the timer. (o:

Rate Form Trick

'Add this to the timers code area. 
Form1.Width = Form1.Width - 30
Form1.Height = Form1.Height - 30
Form1.Top = Form1.Top + 50
Form1.Left = Form1.Left + 5
'Feel free to alter this code, this is merely an example to be customized. (o:

Download this snippet    Add to My Saved Code

Form Trick Comments

No comments have been posted about Form Trick. Why not be the first to post a comment about Form Trick.

Post your comment

Subject:
Message:
0/1000 characters